mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
fix(CommandPalette): consistent alignement with other components
This commit is contained in:
@@ -258,7 +258,6 @@ const groups = computed(() => {
|
|||||||
:placeholder="placeholder || t('commandPalette.placeholder')"
|
:placeholder="placeholder || t('commandPalette.placeholder')"
|
||||||
variant="none"
|
variant="none"
|
||||||
:autofocus="autofocus"
|
:autofocus="autofocus"
|
||||||
size="lg"
|
|
||||||
v-bind="inputProps"
|
v-bind="inputProps"
|
||||||
:icon="icon || appConfig.ui.icons.search"
|
:icon="icon || appConfig.ui.icons.search"
|
||||||
:class="ui.input({ class: props.ui?.input })"
|
:class="ui.input({ class: props.ui?.input })"
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ import type { ModuleOptions } from '../module'
|
|||||||
export default (options: Required<ModuleOptions>) => ({
|
export default (options: Required<ModuleOptions>) => ({
|
||||||
slots: {
|
slots: {
|
||||||
root: 'flex flex-col min-h-0 min-w-0 divide-y divide-(--ui-border)',
|
root: 'flex flex-col min-h-0 min-w-0 divide-y divide-(--ui-border)',
|
||||||
input: '[&>input]:h-12 [&>input]:text-base/5',
|
input: '[&>input]:h-12',
|
||||||
close: '',
|
close: '',
|
||||||
content: 'relative overflow-hidden flex flex-col',
|
content: 'relative overflow-hidden flex flex-col',
|
||||||
viewport: 'relative divide-y divide-(--ui-border) scroll-py-1 overflow-y-auto flex-1 focus:outline-none',
|
viewport: 'relative divide-y divide-(--ui-border) scroll-py-1 overflow-y-auto flex-1 focus:outline-none',
|
||||||
group: 'p-1 isolate',
|
group: 'p-1 isolate',
|
||||||
empty: 'py-6 text-center text-sm text-(--ui-text-muted)',
|
empty: 'py-6 text-center text-sm text-(--ui-text-muted)',
|
||||||
label: 'px-2 py-1.5 text-xs font-semibold text-(--ui-text-highlighted)',
|
label: 'p-1.5 text-xs font-semibold text-(--ui-text-highlighted)',
|
||||||
item: 'group relative w-full flex items-center gap-2 px-2 py-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75',
|
item: 'group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75',
|
||||||
itemLeadingIcon: 'shrink-0 size-5',
|
itemLeadingIcon: 'shrink-0 size-5',
|
||||||
itemLeadingAvatar: 'shrink-0',
|
itemLeadingAvatar: 'shrink-0',
|
||||||
itemLeadingAvatarSize: '2xs',
|
itemLeadingAvatarSize: '2xs',
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user