Browse Source

refactor(gui-v2): put treeview scrollbar to left side

pull/3023/head
braks 2 years ago
parent
commit
9022aa6bcc
  1. 5
      packages/nc-gui-v2/components/dashboard/TreeView.vue

5
packages/nc-gui-v2/components/dashboard/TreeView.vue

@ -152,8 +152,9 @@ const addTableTab = (table: TableType) => {
</div> </div>
<a-dropdown :trigger="['contextmenu']"> <a-dropdown :trigger="['contextmenu']">
<div class="p-1 flex-1 overflow-y-auto flex flex-column scrollbar-thin-primary"> <div class="p-1 flex-1 overflow-y-auto flex flex-column scrollbar-thin-primary" style="direction: rtl">
<div <div
style="direction: ltr"
class="py-1 px-3 flex w-full align-center gap-1 cursor-pointer" class="py-1 px-3 flex w-full align-center gap-1 cursor-pointer"
@click="showTableList = !showTableList" @click="showTableList = !showTableList"
@contextmenu="setMenuContext('main')" @contextmenu="setMenuContext('main')"
@ -168,7 +169,7 @@ const addTableTab = (table: TableType) => {
:class="{ 'transform rotate-180': showTableList }" :class="{ 'transform rotate-180': showTableList }"
/> />
</div> </div>
<div class="flex-1"> <div style="direction: ltr" class="flex-1">
<div class="transition-height duration-200 overflow-hidden" :class="{ 'h-100': showTableList, 'h-0': !showTableList }"> <div class="transition-height duration-200 overflow-hidden" :class="{ 'h-100': showTableList, 'h-0': !showTableList }">
<div :key="key" ref="menuRef" class="border-none sortable-list"> <div :key="key" ref="menuRef" class="border-none sortable-list">
<div <div

Loading…
Cancel
Save