mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +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
@@ -601,6 +601,12 @@ var event_fixtures = {
|
||||
setting: true,
|
||||
},
|
||||
|
||||
update_display_settings__fluid_layout_width: {
|
||||
type: 'update_display_settings',
|
||||
setting_name: 'fluid_layout_width',
|
||||
setting: true,
|
||||
},
|
||||
|
||||
update_display_settings__translate_emoticons: {
|
||||
type: 'update_display_settings',
|
||||
setting_name: 'translate_emoticons',
|
||||
@@ -1377,6 +1383,12 @@ with_overrides(function (override) {
|
||||
page_params.starred_message_counts = false;
|
||||
dispatch(event);
|
||||
assert_same(page_params.starred_message_counts, true);
|
||||
|
||||
override('scroll_bar.set_layout_width', noop);
|
||||
event = event_fixtures.update_display_settings__fluid_layout_width;
|
||||
page_params.fluid_layout_width = false;
|
||||
dispatch(event);
|
||||
assert_same(page_params.fluid_layout_width, true);
|
||||
});
|
||||
|
||||
with_overrides(function (override) {
|
||||
|
||||
Reference in New Issue
Block a user