Browse Source

feat: update list view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2723/head
Pranav C 2 years ago
parent
commit
bbf2e2dac1
  1. 4
      packages/nc-gui-v2/assets/style-v2.scss
  2. 14
      packages/nc-gui-v2/components/dashboard/TreeView.vue

4
packages/nc-gui-v2/assets/style-v2.scss

@ -64,3 +64,7 @@ h1, h2, h3, h4, h5, h6 {
.nc-icon {
@apply color-transition;
}
:root {
--header-height: 64px;
}

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

@ -7,17 +7,17 @@ const { addTab } = useTabs()
</script>
<template>
<div>
<v-list>
<v-list-item
<div class="nc-treeview-container flex flex-column">
<a-menu>
<a-menu-item
v-for="table in tables"
:key="table.id"
class="p-2 text-sm pointer"
@click="addTab({ type: 'table', title: table.title, id: table.id })"
>
{{ table.title }}
</v-list-item>
</v-list>
</a-menu-item>
</a-menu>
</div>
</template>
@ -25,4 +25,8 @@ const { addTab } = useTabs()
.pointer {
cursor: pointer;
}
.nc-treeview-container {
height: calc(100vh - var(--header-height));
}
</style>

Loading…
Cancel
Save