chore: minor ui improvements

This commit is contained in:
Liyas Thomas
2022-10-05 08:40:09 +05:30
parent f8e9563392
commit f5a0c3cfca
5 changed files with 11 additions and 13 deletions

View File

@@ -455,6 +455,7 @@ pre.ace_editor {
@apply px-1; @apply px-1;
@apply border border-dividerDark; @apply border border-dividerDark;
@apply shadow-sm; @apply shadow-sm;
@apply <sm:hidden;
} }
.capitalize-first { .capitalize-first {

View File

@@ -11,22 +11,19 @@
<Pane <Pane
:size="PANE_MAIN_SIZE" :size="PANE_MAIN_SIZE"
min-size="65" min-size="65"
class="hide-scrollbar !overflow-auto flex flex-col" class="flex flex-col !overflow-auto"
> >
<Splitpanes <Splitpanes
class="smart-splitter" class="smart-splitter"
:horizontal="COLUMN_LAYOUT" :horizontal="COLUMN_LAYOUT"
@resize="setPaneEvent($event, 'horizontal')" @resize="setPaneEvent($event, 'horizontal')"
> >
<Pane <Pane :size="PANE_MAIN_TOP_SIZE" class="flex flex-col !overflow-auto">
:size="PANE_MAIN_TOP_SIZE"
class="hide-scrollbar !overflow-auto flex flex-col"
>
<slot name="primary" /> <slot name="primary" />
</Pane> </Pane>
<Pane <Pane
:size="PANE_MAIN_BOTTOM_SIZE" :size="PANE_MAIN_BOTTOM_SIZE"
class="flex flex-col hide-scrollbar !overflow-auto" class="flex flex-col !overflow-auto"
> >
<slot name="secondary" /> <slot name="secondary" />
</Pane> </Pane>
@@ -36,7 +33,7 @@
v-if="SIDEBAR && hasSidebar" v-if="SIDEBAR && hasSidebar"
:size="PANE_SIDEBAR_SIZE" :size="PANE_SIDEBAR_SIZE"
min-size="20" min-size="20"
class="!overflow-auto flex flex-col bg-primaryContrast" class="flex flex-col !overflow-auto bg-primaryContrast"
> >
<slot name="sidebar" /> <slot name="sidebar" />
</Pane> </Pane>

View File

@@ -20,7 +20,7 @@
open open
> >
<summary <summary
class="flex items-center flex-1 min-w-0 px-6 py-4 font-semibold transition cursor-pointer focus:outline-none text-secondaryLight hover:text-secondaryDark" class="flex items-center flex-1 min-w-0 px-6 py-4 font-semibold cursor-pointer transition focus:outline-none text-secondaryLight hover:text-secondaryDark"
> >
<icon-lucide-chevron-right class="mr-2 indicator" /> <icon-lucide-chevron-right class="mr-2 indicator" />
<span <span
@@ -55,7 +55,7 @@
open open
> >
<summary <summary
class="flex items-center flex-1 min-w-0 px-6 py-4 font-semibold transition cursor-pointer focus:outline-none text-secondaryLight hover:text-secondaryDark" class="flex items-center flex-1 min-w-0 px-6 py-4 font-semibold cursor-pointer transition focus:outline-none text-secondaryLight hover:text-secondaryDark"
> >
<icon-lucide-chevron-right class="mr-2 indicator" /> <icon-lucide-chevron-right class="mr-2 indicator" />
<span <span

View File

@@ -41,11 +41,11 @@
]" ]"
/> />
{{ label }} {{ label }}
<div v-if="shortcut.length" class="ml-2 <sm:hidden"> <div v-if="shortcut.length" class="<sm:hidden">
<kbd <kbd
v-for="(key, index) in shortcut" v-for="(key, index) in shortcut"
:key="`key-${index}`" :key="`key-${index}`"
class="shortcut-key !bg-accentLight" class="shortcut-key !bg-accentDark !border-accentLight"
> >
{{ key }} {{ key }}
</kbd> </kbd>

View File

@@ -42,11 +42,11 @@
]" ]"
/> />
{{ label }} {{ label }}
<div v-if="shortcut.length" class="ml-2 <sm:hidden"> <div v-if="shortcut.length" class="<sm:hidden">
<kbd <kbd
v-for="(key, index) in shortcut" v-for="(key, index) in shortcut"
:key="`key-${index}`" :key="`key-${index}`"
class="shortcut-key" class="shortcut-key !bg-inherit"
> >
{{ key }} {{ key }}
</kbd> </kbd>