mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Make mobile menu behavior more consistent, and stats styles responsive (#391)
This commit is contained in:
@@ -73,7 +73,9 @@ export const SceneGallerySelect: React.FC<ISceneGallerySelect> = props => {
|
||||
|
||||
const onChange = (selectedItems: ValueType<Option>) => {
|
||||
const selectedItem = getSelectedValues(selectedItems)[0];
|
||||
props.onSelect(selectedItem ? galleries.find(g => g.id === selectedItem) : undefined);
|
||||
props.onSelect(
|
||||
selectedItem ? galleries.find(g => g.id === selectedItem) : undefined
|
||||
);
|
||||
};
|
||||
|
||||
const selectedOptions: Option[] = props.initialId
|
||||
@@ -211,7 +213,7 @@ export const StudioSelect: React.FC<IFilterProps> = props => {
|
||||
const { data, loading } = StashService.useAllStudiosForFilter();
|
||||
|
||||
const normalizedData = data?.allStudios ?? [];
|
||||
|
||||
|
||||
const items = (normalizedData.length > 0
|
||||
? [{ name: "None", id: "0" }, ...normalizedData]
|
||||
: []
|
||||
|
||||
Reference in New Issue
Block a user