mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
feat: give category selector input min-width for mobile
This commit is contained in:
@@ -153,11 +153,13 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-left .dropdown-menu {
|
.dropdown-left {
|
||||||
--bs-position: start;
|
[component="category-selector-search"] { left:0!important; }
|
||||||
|
.dropdown-menu { --bs-position: start; }
|
||||||
}
|
}
|
||||||
.dropdown-right .dropdown-menu {
|
.dropdown-right {
|
||||||
--bs-position: end;
|
[component="category-selector-search"] { right:0!important; }
|
||||||
|
.dropdown-menu { --bs-position: end; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[component="category-selector"] {
|
[component="category-selector"] {
|
||||||
|
|||||||
@@ -23,11 +23,13 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.dropdown-left .dropdown-menu {
|
.dropdown-left {
|
||||||
--bs-position: start;
|
[component="category-selector-search"] { left:0!important; }
|
||||||
|
.dropdown-menu { --bs-position: start; }
|
||||||
}
|
}
|
||||||
.dropdown-right .dropdown-menu {
|
.dropdown-right {
|
||||||
--bs-position: end;
|
[component="category-selector-search"] { right:0!important; }
|
||||||
|
.dropdown-menu { --bs-position: end; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-dropdown-menu {
|
.category-dropdown-menu {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<span class="d-none d-md-inline fw-semibold">[[unread:all-categories]]</span>{{{ end }}}
|
<span class="d-none d-md-inline fw-semibold">[[unread:all-categories]]</span>{{{ end }}}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div component="category-selector-search" class="hidden position-absolute">
|
<div component="category-selector-search" class="hidden position-absolute" style="min-width: 120px;">
|
||||||
<input type="text" class="form-control form-control-sm" placeholder="[[search:type-to-search]]" autocomplete="off">
|
<input type="text" class="form-control form-control-sm" placeholder="[[search:type-to-search]]" autocomplete="off">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user