mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #949 from Stremio/refactor/Multiselect-menu-fixed-height
MultiselectMenu: use fixed height
This commit is contained in:
commit
b75d20971c
5 changed files with 10 additions and 4 deletions
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
.modal-container, .popup-menu-container {
|
||||
.menu-container {
|
||||
max-height: calc(3.2rem * 7);
|
||||
max-height: calc(3rem * 7);
|
||||
|
||||
.option-container {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
@import (reference) '~stremio/common/screen-sizes.less';
|
||||
|
||||
@parent-height: 12rem;
|
||||
@item-height: 3rem;
|
||||
|
||||
.dropdown {
|
||||
background: var(--modal-background-color);
|
||||
|
|
@ -18,7 +19,7 @@
|
|||
|
||||
&.open {
|
||||
display: block;
|
||||
max-height: calc(3.3rem * 7);
|
||||
max-height: calc(@item-height * 7);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
// Copyright (C) 2017-2024 Smart code 203358507
|
||||
|
||||
@height: 3rem;
|
||||
|
||||
.option {
|
||||
height: @height;
|
||||
font-size: var(--font-size-normal);
|
||||
color: var(--primary-foreground-color);
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (C) 2017-2024 Smart code 203358507
|
||||
|
||||
@border-radius: 2.75rem;
|
||||
@height: 3rem;
|
||||
|
||||
.multiselect-menu {
|
||||
position: relative;
|
||||
|
|
@ -14,6 +15,7 @@
|
|||
}
|
||||
|
||||
.multiselect-button {
|
||||
height: @height;
|
||||
padding: 0.75rem 1.5rem;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@
|
|||
overflow: visible !important;
|
||||
|
||||
.select-input {
|
||||
height: 3.5rem;
|
||||
height: 3rem;
|
||||
display: none;
|
||||
|
||||
&:nth-child(n+4) {
|
||||
|
|
@ -240,7 +240,7 @@
|
|||
}
|
||||
|
||||
.multiselect-menu-container {
|
||||
max-height: calc(3.2rem * 3);
|
||||
max-height: calc(3rem * 3);
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue