Skip to content
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
19 changes: 19 additions & 0 deletions src/layout/SigneeList/SigneeListComponent.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@
border-bottom-color: var(--ds-color-accent-base-hover);
}

.table {
table-layout: fixed;
}

.nameWrapper {
display: flex;
}

.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.extension {
flex-shrink: 0;
white-space: nowrap;
}

.table tr td:last-child {
width: 1%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { AppTable } from 'src/app-components/Table/Table';
import { Caption } from 'src/components/form/caption/Caption';
import { Lang } from 'src/features/language/Lang';
import { useLanguage } from 'src/features/language/useLanguage';
import { getFileEnding, removeFileEnding } from 'src/layout/FileUpload/utils/fileEndings';
import classes from 'src/layout/SigneeList/SigneeListComponent.module.css';
import { useDocumentList } from 'src/layout/SigningDocumentList/api';
import { SigningDocumentListError } from 'src/layout/SigningDocumentList/SigningDocumentListError';
Expand Down Expand Up @@ -54,8 +55,12 @@ export function SigningDocumentListComponent({
<Link
href={rowData.url}
rel='noopener noreferrer'
title={rowData.filename}
>
{rowData.filename}
<span className={classes.nameWrapper}>
<span className={classes.truncate}>{removeFileEnding(rowData.filename)}</span>
<span className={classes.extension}>{getFileEnding(rowData.filename)}</span>
</span>
</Link>
),
},
Expand Down
Loading