From 5a86911cc32677f96bde2a7ce11ae04c2dcc34d2 Mon Sep 17 00:00:00 2001 From: Jason Henriquez Date: Thu, 20 Jun 2024 12:08:42 -0500 Subject: [PATCH] Add catch-all size limit on ft-card that fixes commment overflow issue --- src/renderer/components/ft-card/ft-card.css | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/ft-card/ft-card.css b/src/renderer/components/ft-card/ft-card.css index 24952969fb230..0f347faf59c5f 100644 --- a/src/renderer/components/ft-card/ft-card.css +++ b/src/renderer/components/ft-card/ft-card.css @@ -4,5 +4,21 @@ padding-block: 3px 16px; padding-inline: 16px; box-shadow: 0 1px 2px rgb(0 0 0 / 10%); - max-inline-size: 2800px; + max-inline-size: min(calc(100vw + -132px), 2800px); } + +@media only screen and (width > 680px) { + .isSideNavOpen .ft-card { + max-inline-size: min(calc(100vw + -262px), 2800px); + } + + .hideLabelsSideBar .ft-card { + max-inline-size: min(calc(100vw + -122px), 2800px); + } +} + + @media only screen and (width <= 680px) { + .ft-card { + max-inline-size: calc(100vw - 64px); + } + }