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

[DUOS-2757] Increase first column width in study and dataset tables #2400

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Changes from 1 commit
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
13 changes: 11 additions & 2 deletions src/components/CollapsibleTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ const TruncatedTableCell = styled(StyledTableCell)(() => ({
wordBreak: 'break-all'
},
},
'&:nth-child(3)': {
maxWidth: '37ch'
}
}));

const StyledSubtableCell = styled(StyledTableCell)(() => ({
'&:nth-child(2)': {
maxWidth: '15ch'
}
}));

const CollapsibleRow = (props) => {
Expand Down Expand Up @@ -202,9 +211,9 @@ const CollapsibleRow = (props) => {
/>
</StyledTableCell>
{subRow.data.map((cell, k) => (
<StyledTableCell key={k}>
<StyledSubtableCell key={k}>
{cell.value}
</StyledTableCell>
</StyledSubtableCell>
))}
</TableRow>
))}
Expand Down
Loading