mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
stream settings: Correct alignment of filter streams div.
The div containing options for filtering streams was placed in the centre. Aligned it towards the right. Had to pass a special check variable in subs.js:540 to add the specific class for this purpose. This was a specific scenario where this sort of CSS was to be added, hence had to make a specific case. Also, fixed the bottom border color of the search streams bar for night mode.
This commit is contained in:
committed by
Tim Abbott
parent
703fae8980
commit
2c0c936e40
@@ -85,10 +85,17 @@ run_test('basics', () => {
|
||||
|
||||
self.children = [];
|
||||
|
||||
self.classList = new Set();
|
||||
|
||||
self.append = function (child) {
|
||||
self.children.push(child);
|
||||
};
|
||||
|
||||
self.addClass = function (c) {
|
||||
self.classList.add(c);
|
||||
self.addedClass = c;
|
||||
};
|
||||
|
||||
self.find = function (sel) {
|
||||
switch (sel) {
|
||||
case ".ind-tab":
|
||||
@@ -110,6 +117,8 @@ run_test('basics', () => {
|
||||
switch (sel) {
|
||||
case "<div class='tab-switcher'></div>":
|
||||
return switcher;
|
||||
case "<div class='tab-switcher stream_sorter_toggle'></div>":
|
||||
return switcher;
|
||||
case "<div class='ind-tab' data-tab-key='keyboard-shortcuts' data-tab-id='0' tabindex='0'>translated: Keyboard shortcuts</div>":
|
||||
return make_tab(0);
|
||||
case "<div class='ind-tab' data-tab-key='message-formatting' data-tab-id='1' tabindex='0'>translated: Message formatting</div>":
|
||||
@@ -131,6 +140,7 @@ run_test('basics', () => {
|
||||
{ label: i18n.t("Message formatting"), key: "message-formatting" },
|
||||
{ label: i18n.t("Search operators"), key: "search-operators" },
|
||||
],
|
||||
html_class: "stream_sorter_toggle",
|
||||
callback: function (name, key) {
|
||||
assert.equal(callback_args, undefined);
|
||||
callback_args = [name, key];
|
||||
@@ -147,6 +157,8 @@ run_test('basics', () => {
|
||||
|
||||
assert.deepEqual(switcher.children, tabs);
|
||||
|
||||
assert.equal(switcher.addedClass, 'stream_sorter_toggle');
|
||||
|
||||
assert.equal(focused_tab, 0);
|
||||
assert.equal(tabs[0].class, 'first selected');
|
||||
assert.equal(tabs[1].class, 'middle');
|
||||
|
||||
Reference in New Issue
Block a user