Skip to content
Closed
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: 18 additions & 1 deletion frontend/src/components/common/NewTable/Table.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const Table = styled.table(
& a {
color: ${table.td.color.normal};
font-weight: 500;
max-width: 450px;
max-width: 150ch;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as far as I can see we do not use ch anywhere yet and not sure how introducing these is legit. @Mgrdich ideas?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure about the ch

While the ch unit works as an exact measurement for monospaced / fixed width fonts like Courier, it can be unpredictable with proportional fonts like Arial

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexisD02 hey, can you elaborate?

white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand All @@ -172,7 +172,24 @@ export const Table = styled.table(
&:button {
color: ${table.link.color.active};
}
}

@media (max-width: 1500px) {
& a {
max-width: 70ch;
}
}

@media (max-width: 1024px) {
& a {
max-width: 50ch;
}
}

@media (max-width: 768px) {
& a {
max-width: 40ch;
}
}
}
`
Expand Down