Browse Source

mobile optimisations - work on merging right and left sidebar (WIP)

pull/4898/head
Daniel Spaude 2 years ago
parent
commit
7b8c29ba20
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 6
      packages/nc-gui/components/smartsheet/sidebar/mobile.vue
  2. 2
      packages/nc-gui/pages/[projectType]/[projectId]/index/index.vue

6
packages/nc-gui/components/smartsheet/sidebar/mobile.vue

@ -146,7 +146,7 @@ function onOpenModal({
<!-- <div> --> <!-- <div> -->
<!-- Mobile Views Menu <br /> <!-- Mobile Views Menu <br />
views: {{ views.length }} --> views: {{ views.length }} -->
<a-layout-sider <!-- <a-layout-sider
ref="sidebar" ref="sidebar"
:collapsed="sidebarCollapsed" :collapsed="sidebarCollapsed"
collapsiple collapsiple
@ -154,7 +154,7 @@ function onOpenModal({
width="0" width="0"
class="nc-view-sidebar relative shadow h-full w-full !flex-1 !min-w-0 !max-w-[150px] !w-[150px] lg:(!max-w-[250px] !w-[250px])" class="nc-view-sidebar relative shadow h-full w-full !flex-1 !min-w-0 !max-w-[150px] !w-[150px] lg:(!max-w-[250px] !w-[250px])"
theme="light" theme="light"
> > -->
<!-- <LazySmartsheetSidebarToolbar <!-- <LazySmartsheetSidebarToolbar
class="min-h-[var(--toolbar-height)] max-h-[var(--toolbar-height)] flex items-center py-3 px-3 justify-between border-b-1" class="min-h-[var(--toolbar-height)] max-h-[var(--toolbar-height)] flex items-center py-3 px-3 justify-between border-b-1"
/> --> /> -->
@ -206,7 +206,7 @@ function onOpenModal({
<LazySmartsheetSidebarMenuBottom @open-modal="onOpenModal" /> <LazySmartsheetSidebarMenuBottom @open-modal="onOpenModal" />
</template> </template>
</div> </div>
</a-layout-sider> <!-- </a-layout-sider> -->
<!-- </div> --> <!-- </div> -->
</template> </template>

2
packages/nc-gui/pages/[projectType]/[projectId]/index/index.vue

@ -58,7 +58,7 @@ onMounted(() => {
/> />
</div> </div>
<a-tabs v-model:activeKey="activeTabIndex" class="nc-root-tabs" type="editable-card" @edit="onEdit"> <a-tabs v-if="!isMobileMode" v-model:activeKey="activeTabIndex" class="nc-root-tabs" type="editable-card" @edit="onEdit">
<a-tab-pane v-for="(tab, i) of tabs" :key="i"> <a-tab-pane v-for="(tab, i) of tabs" :key="i">
<template #tab> <template #tab>
<div class="flex items-center gap-2 max-w-[110px]" data-testid="nc-tab-title"> <div class="flex items-center gap-2 max-w-[110px]" data-testid="nc-tab-title">

Loading…
Cancel
Save