mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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" ||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user