fix(documents): fit workspace within private layout
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -23,6 +23,7 @@ const emit = defineEmits<{
|
|||||||
<template>
|
<template>
|
||||||
<v-navigation-drawer
|
<v-navigation-drawer
|
||||||
:model-value="modelValue"
|
:model-value="modelValue"
|
||||||
|
contained
|
||||||
@update:model-value="emit('update:modelValue', $event)"
|
@update:model-value="emit('update:modelValue', $event)"
|
||||||
:permanent="!isMobile"
|
:permanent="!isMobile"
|
||||||
:temporary="isMobile"
|
:temporary="isMobile"
|
||||||
|
|||||||
@@ -34,15 +34,17 @@ const viewModeModel = computed({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<v-app-bar elevation="0" density="compact" class="files-toolbar">
|
<v-toolbar elevation="0" density="compact" class="files-toolbar">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<v-app-bar-nav-icon
|
<v-btn
|
||||||
v-if="isMobile"
|
v-if="isMobile"
|
||||||
|
icon="mdi-menu"
|
||||||
|
variant="text"
|
||||||
@click="emit('toggle-sidebar')"
|
@click="emit('toggle-sidebar')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<v-app-bar-title>Files</v-app-bar-title>
|
<v-toolbar-title>Files</v-toolbar-title>
|
||||||
|
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
|
||||||
@@ -122,7 +124,7 @@ const viewModeModel = computed({
|
|||||||
<span class="d-none d-sm-inline">New Folder</span>
|
<span class="d-none d-sm-inline">New Folder</span>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
</v-app-bar>
|
</v-toolbar>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -934,7 +934,8 @@ onMounted(async () => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
padding: 48px;
|
padding: 48px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -948,19 +949,22 @@ onMounted(async () => {
|
|||||||
.files-container {
|
.files-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
|
min-height: 0;
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
}
|
}
|
||||||
|
|
||||||
.files-content {
|
.files-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.files-main {
|
.files-main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -968,6 +972,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
.files-workspace {
|
.files-workspace {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -975,6 +980,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
.files-browser-panel {
|
.files-browser-panel {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
+2
-1
@@ -4,7 +4,8 @@ const routes: RouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
name: 'documents',
|
name: 'documents',
|
||||||
path: '/',
|
path: '/',
|
||||||
component: () => import('@/pages/FilesPage.vue')
|
component: () => import('@/pages/FilesPage.vue'),
|
||||||
|
meta: { layout: 'fixed' },
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user