server_dispatch: Calculate typography vars on dense_mode.

Owing to logic added in #30050, which accounts for the legacy line-
height value, toggling dense mode requires recalculating the
typography vars--otherwise, a non-legacy line-height value will
not be picked up until a refresh.
This commit is contained in:
Karl Stolley
2024-06-18 11:49:21 -04:00
committed by Tim Abbott
parent c4d20678e4
commit c80ffe8e0f
2 changed files with 2 additions and 0 deletions

View File

@@ -779,6 +779,7 @@ export function dispatch_normal_event(event) {
if (event.property === "dense_mode") {
$("body").toggleClass("less-dense-mode");
$("body").toggleClass("more-dense-mode");
information_density.set_base_typography_css_variables();
}
if (
event.property === "web_font_size_px" ||