diff --git a/src/layout/components/LayoutSettings.scss b/src/layout/components/LayoutSettings.scss index 45961aca..2bba4acd 100644 --- a/src/layout/components/LayoutSettings.scss +++ b/src/layout/components/LayoutSettings.scss @@ -29,10 +29,8 @@ position: relative; box-sizing: border-box; display: grid; - grid-template-rows: minmax(0, 1fr) auto; place-items: center; align-self: start; - gap: 3px; min-inline-size: 0; min-block-size: 0; inline-size: 100%; @@ -75,7 +73,7 @@ display: grid; grid-template: minmax(0, 1fr) minmax(0, 3fr) / minmax(0, 1fr) minmax(0, 3fr); gap: 3px; - block-size: min(100%, 42px); + block-size: min(68%, 60px); max-inline-size: 100%; aspect-ratio: 1; padding: 4px; diff --git a/src/layout/components/LayoutSettings.tsx b/src/layout/components/LayoutSettings.tsx index ce99fbef..8839be87 100644 --- a/src/layout/components/LayoutSettings.tsx +++ b/src/layout/components/LayoutSettings.tsx @@ -15,7 +15,7 @@ import { export default defineComponent({ name: 'LayoutSettings', - props: { showDescription: { type: Boolean, default: true } }, + props: { showDescription: { type: Boolean, default: false } }, setup(props) { const { t } = useI18n('layout') const { getLayoutConfig } = useSettingGetters() @@ -36,6 +36,8 @@ export default defineComponent({ type="button" class="r-layout-preset" key={mode} + aria-label={text(mode)} + title={text(mode)} aria-pressed={getLayoutConfig.value.mode === mode} onClick={() => update({ mode })} > @@ -47,7 +49,6 @@ export default defineComponent({ - {text(mode)} {getLayoutConfig.value.mode === mode ? (