mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +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 {
|
||||
--bs-position: start;
|
||||
.dropdown-left {
|
||||
[component="category-selector-search"] { left:0!important; }
|
||||
.dropdown-menu { --bs-position: start; }
|
||||
}
|
||||
.dropdown-right .dropdown-menu {
|
||||
--bs-position: end;
|
||||
.dropdown-right {
|
||||
[component="category-selector-search"] { right:0!important; }
|
||||
.dropdown-menu { --bs-position: end; }
|
||||
}
|
||||
|
||||
[component="category-selector"] {
|
||||
|
||||
@@ -23,11 +23,13 @@
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
.dropdown-left .dropdown-menu {
|
||||
--bs-position: start;
|
||||
.dropdown-left {
|
||||
[component="category-selector-search"] { left:0!important; }
|
||||
.dropdown-menu { --bs-position: start; }
|
||||
}
|
||||
.dropdown-right .dropdown-menu {
|
||||
--bs-position: end;
|
||||
.dropdown-right {
|
||||
[component="category-selector-search"] { right:0!important; }
|
||||
.dropdown-menu { --bs-position: end; }
|
||||
}
|
||||
|
||||
.category-dropdown-menu {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<span class="d-none d-md-inline fw-semibold">[[unread:all-categories]]</span>{{{ end }}}
|
||||
</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">
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user