mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
add responsive breakpoint for queue control items
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
.toolbar {
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
|
container-type: inline-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
.restore-section {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
@container (max-width: 296px) {
|
||||||
|
.restore-section {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -3,6 +3,8 @@ import { t } from 'i18next';
|
|||||||
import { RefObject } from 'react';
|
import { RefObject } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
import styles from './play-queue-list-controls.module.css';
|
||||||
|
|
||||||
import { queryKeys } from '/@/renderer/api/query-keys';
|
import { queryKeys } from '/@/renderer/api/query-keys';
|
||||||
import { SONG_TABLE_COLUMNS } from '/@/renderer/components/item-list/item-table-list/default-columns';
|
import { SONG_TABLE_COLUMNS } from '/@/renderer/components/item-list/item-table-list/default-columns';
|
||||||
import { ItemListHandle } from '/@/renderer/components/item-list/types';
|
import { ItemListHandle } from '/@/renderer/components/item-list/types';
|
||||||
@@ -38,6 +40,7 @@ export const PlayQueueListControls = ({
|
|||||||
return (
|
return (
|
||||||
<Group
|
<Group
|
||||||
align="center"
|
align="center"
|
||||||
|
className={styles.toolbar}
|
||||||
gap="sm"
|
gap="sm"
|
||||||
justify="flex-start"
|
justify="flex-start"
|
||||||
px="md"
|
px="md"
|
||||||
@@ -141,7 +144,7 @@ const QueueRestoreActions = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<span className={styles.restoreSection}>
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
disabled={Boolean(isFetching)}
|
disabled={Boolean(isFetching)}
|
||||||
icon="upload"
|
icon="upload"
|
||||||
@@ -168,6 +171,6 @@ const QueueRestoreActions = () => {
|
|||||||
}}
|
}}
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
/>
|
/>
|
||||||
</>
|
</span>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user