add responsive breakpoint for queue control items

This commit is contained in:
jeffvli
2026-04-04 17:37:47 -07:00
parent 99530c670e
commit 43fa574dab
2 changed files with 22 additions and 2 deletions
@@ -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 { useTranslation } from 'react-i18next';
import styles from './play-queue-list-controls.module.css';
import { queryKeys } from '/@/renderer/api/query-keys';
import { SONG_TABLE_COLUMNS } from '/@/renderer/components/item-list/item-table-list/default-columns';
import { ItemListHandle } from '/@/renderer/components/item-list/types';
@@ -38,6 +40,7 @@ export const PlayQueueListControls = ({
return (
<Group
align="center"
className={styles.toolbar}
gap="sm"
justify="flex-start"
px="md"
@@ -141,7 +144,7 @@ const QueueRestoreActions = () => {
}
return (
<>
<span className={styles.restoreSection}>
<ActionIcon
disabled={Boolean(isFetching)}
icon="upload"
@@ -168,6 +171,6 @@ const QueueRestoreActions = () => {
}}
variant="subtle"
/>
</>
</span>
);
};