mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
left_sidebar: Remove .input-append from stream filter.
This commit is contained in:
@@ -347,16 +347,16 @@ async function test_search_venice(page: Page): Promise<void> {
|
|||||||
await page.waitForSelector(await get_stream_li(page, "Verona"), {visible: true});
|
await page.waitForSelector(await get_stream_li(page, "Verona"), {visible: true});
|
||||||
|
|
||||||
await page.click("#streams_header .left-sidebar-title");
|
await page.click("#streams_header .left-sidebar-title");
|
||||||
await page.waitForSelector(".input-append.notdisplayed");
|
await page.waitForSelector(".stream_search_section.notdisplayed");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function test_stream_search_filters_stream_list(page: Page): Promise<void> {
|
async function test_stream_search_filters_stream_list(page: Page): Promise<void> {
|
||||||
console.log("Filter streams using left side bar");
|
console.log("Filter streams using left side bar");
|
||||||
|
|
||||||
await page.waitForSelector(".input-append.notdisplayed"); // Stream filter box invisible initially
|
await page.waitForSelector(".stream_search_section.notdisplayed"); // Stream filter box invisible initially
|
||||||
await page.click("#streams_header .left-sidebar-title");
|
await page.click("#streams_header .left-sidebar-title");
|
||||||
|
|
||||||
await page.waitForSelector("#streams_list .input-append.notdisplayed", {hidden: true});
|
await page.waitForSelector("#streams_list .stream_search_section.notdisplayed", {hidden: true});
|
||||||
|
|
||||||
// assert streams exist by waiting till they're visible
|
// assert streams exist by waiting till they're visible
|
||||||
await page.waitForSelector(await get_stream_li(page, "Denmark"), {visible: true});
|
await page.waitForSelector(await get_stream_li(page, "Denmark"), {visible: true});
|
||||||
|
|||||||
@@ -1185,7 +1185,7 @@ li.topic-list-item {
|
|||||||
width: var(--left-sidebar-header-icon-width);
|
width: var(--left-sidebar-header-icon-width);
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-append {
|
.stream_search_section {
|
||||||
grid-area: filter-box;
|
grid-area: filter-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: stretch;
|
justify-content: stretch;
|
||||||
@@ -1194,7 +1194,7 @@ li.topic-list-item {
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
& input {
|
.stream-list-filter {
|
||||||
/* Use the border-box model so flex
|
/* Use the border-box model so flex
|
||||||
can do its thing despite whatever
|
can do its thing despite whatever
|
||||||
padding and border we specify. */
|
padding and border we specify. */
|
||||||
|
|||||||
@@ -178,7 +178,7 @@
|
|||||||
<span class="masked_unread_count"></span>
|
<span class="masked_unread_count"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-append notdisplayed stream_search_section">
|
<div class="notdisplayed stream_search_section">
|
||||||
<input class="stream-list-filter home-page-input filter_text_input" type="text" autocomplete="off" placeholder="{{t 'Filter channels' }}" />
|
<input class="stream-list-filter home-page-input filter_text_input" type="text" autocomplete="off" placeholder="{{t 'Filter channels' }}" />
|
||||||
<button type="button" class="btn clear_search_button" id="clear_search_stream_button">
|
<button type="button" class="btn clear_search_button" id="clear_search_stream_button">
|
||||||
<i class="fa fa-remove" aria-hidden="true"></i>
|
<i class="fa fa-remove" aria-hidden="true"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user