mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
settings: Add option for fixed/fluid width.
This adds a new option for "fluid width" under `Display settings` section of SETTINGS/DISPLAY SETTINGS tab. Fixes: #11844.
This commit is contained in:
committed by
Tim Abbott
parent
389c56e88d
commit
a838de63d8
@@ -385,6 +385,7 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
||||
'twenty_four_hour_time',
|
||||
'translate_emoticons',
|
||||
'starred_message_counts',
|
||||
'fluid_layout_width',
|
||||
];
|
||||
if (_.contains(user_display_settings, event.setting_name)) {
|
||||
page_params[event.setting_name] = event.setting;
|
||||
@@ -423,6 +424,9 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
||||
if (event.setting_name === 'starred_message_counts') {
|
||||
starred_messages.rerender_ui();
|
||||
}
|
||||
if (event.setting_name === 'fluid_layout_width') {
|
||||
scroll_bar.set_layout_width();
|
||||
}
|
||||
if (event.setting_name === 'left_side_userlist') {
|
||||
// TODO: Make this change the view immediately rather
|
||||
// than requiring a reload or page resize.
|
||||
|
||||
Reference in New Issue
Block a user