mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
fix sidebar top toolbar ui issue
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
:class="['group/main-layout flex-1 h-full min-w-0', { 'aside-collapsed': isAsideCollapsedStatic }]"
|
:class="['group/main-layout flex-1 h-full min-w-0', { 'aside-collapsed': isAsideCollapsedStatic }]"
|
||||||
@layout="handleLayout">
|
@layout="handleLayout">
|
||||||
<template #default="{ layout }">
|
<template #default="{ layout }">
|
||||||
<ResizablePanel :default-size="mainDefaultSize" :order="1">
|
<ResizablePanel :default-size="mainDefaultSize" :order="1" :size-unit="'px'">
|
||||||
<RouterView v-slot="{ Component }">
|
<RouterView v-slot="{ Component }">
|
||||||
<KeepAlive exclude="ChartsInstance, ChartsMutual">
|
<KeepAlive exclude="ChartsInstance, ChartsMutual">
|
||||||
<component :is="Component" />
|
<component :is="Component" />
|
||||||
@@ -42,6 +42,7 @@
|
|||||||
:collapsed-size="0"
|
:collapsed-size="0"
|
||||||
collapsible
|
collapsible
|
||||||
:order="2"
|
:order="2"
|
||||||
|
:size-unit="'px'"
|
||||||
:style="{ maxWidth: `${asideMaxPx}px` }">
|
:style="{ maxWidth: `${asideMaxPx}px` }">
|
||||||
<Sidebar></Sidebar>
|
<Sidebar></Sidebar>
|
||||||
</ResizablePanel>
|
</ResizablePanel>
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="x-aside-container">
|
<div class="x-aside-container">
|
||||||
<div style="display: flex; align-items: baseline">
|
<div style="display: flex; align-items: baseline">
|
||||||
<div style="flex: 1; padding: 10px; padding-left: 0">
|
<div class="search-container" style="flex: 1; padding: 10px; padding-left: 0">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="border-input dark:bg-input/30 flex h-9 w-full items-center gap-2 rounded-md border bg-transparent px-3 shadow-xs transition-[color,box-shadow] hover:border-ring cursor-pointer"
|
class="border-input dark:bg-input/30 flex h-9 w-full items-center gap-2 rounded-md border bg-transparent px-3 shadow-xs transition-[color,box-shadow] hover:border-ring cursor-pointer overflow-hidden"
|
||||||
@click="openGlobalSearch">
|
@click="openGlobalSearch">
|
||||||
<Search class="size-4 shrink-0 opacity-50" />
|
<Search class="size-4 shrink-0 opacity-50" />
|
||||||
<span class="flex-1 text-left text-sm text-muted-foreground truncate">{{
|
<span class="search-text flex-1 min-w-0 text-left text-sm text-muted-foreground truncate">{{
|
||||||
t('side_panel.search_placeholder')
|
t('side_panel.search_placeholder')
|
||||||
}}</span>
|
}}</span>
|
||||||
<Kbd>{{ isMac ? '⌘' : 'Ctrl' }}</Kbd>
|
<Kbd class="search-kbd shrink-0">{{ isMac ? '⌘' : 'Ctrl' }}</Kbd>
|
||||||
<Kbd>K</Kbd>
|
<Kbd class="search-kbd shrink-0">K</Kbd>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center mx-1 gap-1">
|
<div class="flex items-center mx-1 gap-1">
|
||||||
@@ -373,4 +373,20 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
container-type: inline-size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@container (max-width: 150px) {
|
||||||
|
.search-text {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@container (max-width: 80px) {
|
||||||
|
.search-kbd {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
'reka-ui',
|
'reka-ui',
|
||||||
'pinia',
|
'pinia',
|
||||||
'vue-i18n',
|
'vue-i18n',
|
||||||
|
'tailwindcss',
|
||||||
'lucide-vue-next',
|
'lucide-vue-next',
|
||||||
'@vueuse/core',
|
'@vueuse/core',
|
||||||
'vue-sonner',
|
'vue-sonner',
|
||||||
|
|||||||
Reference in New Issue
Block a user