Skip to content

Commit 395ba6a

Browse files
authored
fix(committees): truncate long meeting descriptions on group overview (#604)
Long URLs in meeting descriptions (e.g. Google Docs agenda links) were overflowing the dashboard meeting card and forcing horizontal page scroll on the group overview. The 'truncate' class on the description `<p>` was being defeated by the default min-width: auto on flex/grid items up the parent chain. - Add min-w-0 to the description <p> so its overflow:hidden actually clips - Add min-w-0 to the right-column grid item so the 1fr column doesn't expand to fit content Signed-off-by: Nuno Eufrasio <nmeufrasio@gmail.com>
1 parent ade5237 commit 395ba6a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/lfx-one/src/app/modules/committees/components/committee-overview/committee-overview.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
</lfx-card>
108108

109109
<!-- RIGHT: Meetings + Pending Actions stacked -->
110-
<div class="flex flex-col gap-5">
110+
<div class="flex flex-col gap-5 min-w-0">
111111
@if (!isVisitor()) {
112112
<!-- Next Meeting -->
113113
<div class="flex flex-col gap-2">

apps/lfx-one/src/app/modules/dashboards/components/dashboard-meeting-card/dashboard-meeting-card.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148

149149
<!-- Description snippet -->
150150
@if (meetingDescription()) {
151-
<p class="text-[10px] text-gray-500 truncate" data-testid="dashboard-meeting-card-description">
151+
<p class="text-[10px] text-gray-500 truncate min-w-0" data-testid="dashboard-meeting-card-description">
152152
{{ meetingDescription() }}
153153
</p>
154154
}

0 commit comments

Comments
 (0)