Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPICSYSTEM-67] Wrap document widget title to see full text #73

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ const DocumentFile = ({
<Grid item xs>
<Stack spacing={2} direction="row" alignItems="center">
{documentItem.is_uploaded ? <InsertDriveFileIcon /> : <LinkIcon />}
<Typography>{documentItem.title}</Typography>
<Typography
sx={{
whiteSpace: 'normal',
width: '90%',
wordWrap: 'break-word',
}}
>
{documentItem.title}
</Typography>
</Stack>
</Grid>
<Grid item xs container justifyContent={'flex-end'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ export function StyledTreeItem(props: StyledTreeItemProps & DocumentTreeItemProp
<Link
sx={{
alignItems: 'center',
display: 'flex',
justifyContent: 'center',
whiteSpace: 'normal',
overflowWrap: 'break-word',
flexDirection: 'column',
maxWidth: '80%',
}}
target="_blank"
href={`${labelUrl}`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function DocumentTree({ documentItem }: DocumentTreeProps) {
defaultCollapseIcon={<ArrowDropDownIcon sx={{ height: '35px', width: '35px' }} />}
defaultExpandIcon={<ArrowRightIcon sx={{ height: '35px', width: '35px' }} />}
defaultEndIcon={<div style={{ width: 24 }} />}
sx={{ flexGrow: 1, maxWidth: 400, overflowY: 'auto' }}
sx={{ flexGrow: 1, maxWidth: 1000, overflowY: 'auto' }}
>
<If condition={documentItem.type === 'folder'}>
<Then>
Expand Down
Loading