mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
Fix filtered list toolbar overflow on mobile devices (#5933)
Scenes list page is still ugly, but that will be addressed separately.
This commit is contained in:
parent
7d692232ed
commit
fe9a6d87d2
3 changed files with 43 additions and 26 deletions
|
|
@ -68,8 +68,8 @@ export const FilteredListToolbar: React.FC<IFilteredListToolbar> = ({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ButtonToolbar className="filtered-list-toolbar">
|
<ButtonToolbar className="filtered-list-toolbar">
|
||||||
|
<ButtonGroup>
|
||||||
{onToggleSidebar && (
|
{onToggleSidebar && (
|
||||||
<div>
|
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
<Button
|
<Button
|
||||||
className="sidebar-toggle-button"
|
className="sidebar-toggle-button"
|
||||||
|
|
@ -80,10 +80,9 @@ export const FilteredListToolbar: React.FC<IFilteredListToolbar> = ({
|
||||||
<SidebarIcon />
|
<SidebarIcon />
|
||||||
</Button>
|
</Button>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
|
</ButtonGroup>
|
||||||
|
|
||||||
<div>
|
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
{showEditFilter && (
|
{showEditFilter && (
|
||||||
<ListFilter
|
<ListFilter
|
||||||
|
|
@ -102,6 +101,7 @@ export const FilteredListToolbar: React.FC<IFilteredListToolbar> = ({
|
||||||
onEdit={onEdit}
|
onEdit={onEdit}
|
||||||
onDelete={onDelete}
|
onDelete={onDelete}
|
||||||
/>
|
/>
|
||||||
|
<ButtonGroup>
|
||||||
<ListViewOptions
|
<ListViewOptions
|
||||||
displayMode={filter.displayMode}
|
displayMode={filter.displayMode}
|
||||||
displayModeOptions={filterOptions.displayModeOptions}
|
displayModeOptions={filterOptions.displayModeOptions}
|
||||||
|
|
@ -110,10 +110,8 @@ export const FilteredListToolbar: React.FC<IFilteredListToolbar> = ({
|
||||||
onSetZoom={zoomable ? setZoom : undefined}
|
onSetZoom={zoomable ? setZoom : undefined}
|
||||||
/>
|
/>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</div>
|
</ButtonGroup>
|
||||||
<div>
|
|
||||||
<ButtonGroup></ButtonGroup>
|
<ButtonGroup></ButtonGroup>
|
||||||
</div>
|
|
||||||
</ButtonToolbar>
|
</ButtonToolbar>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -871,6 +871,14 @@ input[type="range"].zoom-slider {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
row-gap: 0.5rem;
|
row-gap: 0.5rem;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.display-mode-select {
|
.btn.display-mode-select {
|
||||||
|
|
|
||||||
|
|
@ -910,6 +910,7 @@ input[type="range"].blue-slider {
|
||||||
& > div {
|
& > div {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
|
@ -922,6 +923,16 @@ input[type="range"].blue-slider {
|
||||||
&:last-child {
|
&:last-child {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-down(xs) {
|
||||||
|
&:nth-child(2) {
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue