Skip to content

Commit 5a86911

Browse files
committed
Add catch-all size limit on ft-card that fixes commment overflow issue
1 parent 74bf210 commit 5a86911

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/renderer/components/ft-card/ft-card.css

+17-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,21 @@
44
padding-block: 3px 16px;
55
padding-inline: 16px;
66
box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
7-
max-inline-size: 2800px;
7+
max-inline-size: min(calc(100vw + -132px), 2800px);
88
}
9+
10+
@media only screen and (width > 680px) {
11+
.isSideNavOpen .ft-card {
12+
max-inline-size: min(calc(100vw + -262px), 2800px);
13+
}
14+
15+
.hideLabelsSideBar .ft-card {
16+
max-inline-size: min(calc(100vw + -122px), 2800px);
17+
}
18+
}
19+
20+
@media only screen and (width <= 680px) {
21+
.ft-card {
22+
max-inline-size: calc(100vw - 64px);
23+
}
24+
}

0 commit comments

Comments
 (0)