Skip to content

Commit 098e586

Browse files
fix(frontend): port the missing popup and notification body styles
The SPA's stylesheet carried over .tum-live-popup-container, .tum-live-popup and .tum-live-popup h2 but not the four descendant rules that give the popup body its shape. The keyboard shortcuts dialog reuses that markup, and all of its column alignment comes from the width on `strong`, so without them it rendered as a run-on list instead of two columns. .notificationBody a was missing for the same reason. Notification bodies are inserted as raw HTML and routinely contain links, which have no styling at all once Tailwind's preflight has reset them. Copied verbatim from web/assets/css, per the note at the top of the file: the two frontends have to render a shared component identically while pages move across one at a time.
1 parent c2861c3 commit 098e586

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

frontend/src/styles/main.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,27 @@
164164
@apply mb-[15px] flex items-center justify-between text-[1.5em] font-bold;
165165
}
166166

167+
/*
168+
* The popup's body is a two-column list: a label of fixed width, then its value.
169+
* Without these the keyboard shortcuts render as a run-on bulleted list, because
170+
* the column alignment comes entirely from the width on `strong`.
171+
*/
172+
.tum-live-popup ul {
173+
@apply list-none border-t border-t-gray-300 p-0;
174+
}
175+
176+
.tum-live-popup li {
177+
@apply border-b border-b-gray-300 py-2.5;
178+
}
179+
180+
.tum-live-popup strong {
181+
@apply mr-5 inline-block w-[380px] font-bold;
182+
}
183+
184+
.tum-live-popup b {
185+
@apply font-bold;
186+
}
187+
167188
.tum-live-settings-grid {
168189
@apply grid gap-y-5 content-start lg:w-3/6 md:w-4/5 w-full p-6 text-3;
169190
}
@@ -179,4 +200,13 @@
179200
.tum-live-footer a {
180201
@apply text-sm font-light text-5 md:py-0 py-1;
181202
}
203+
204+
/*
205+
* Notification bodies are rendered as raw HTML from the database and routinely
206+
* contain links, which have no styling of their own once Tailwind's preflight has
207+
* reset them. From web/assets/css/main.css.
208+
*/
209+
.notificationBody a {
210+
@apply underline;
211+
}
182212
}

0 commit comments

Comments
 (0)