Browse Source

fix/Removed bottom padding and unnecassry ui elements in shared view

pull/3292/head
Muhammed Mustafa 2 years ago
parent
commit
b1dfeac9bc
  1. 3
      packages/nc-gui-v2/components/shared-view/Grid.vue
  2. 2
      packages/nc-gui-v2/components/smartsheet/Grid.vue
  3. 6
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue
  4. 6
      packages/nc-gui-v2/layouts/shared-view.vue

3
packages/nc-gui-v2/components/shared-view/Grid.vue

@ -26,7 +26,8 @@ useProvideSmartsheetStore(sharedView as Ref<TableType>, meta, true, sorts, neste
<style scoped>
.nc-container {
height: calc(100% - var(--header-height));
height: 100%;
padding-bottom: 0.5rem;
flex: 1 1 100%;
}
</style>

2
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -382,7 +382,7 @@ const onNavigate = (dir: NavigateDir) => {
<td key="row-index" class="caption nc-grid-cell pl-5 pr-1">
<div class="items-center flex gap-1 min-w-[55px]">
<div
v-if="!readOnly && !isLocked"
v-if="!readOnly || !isLocked"
class="nc-row-no text-xs text-gray-500"
:class="{ hidden: row.rowMeta.selected }"
>

6
packages/nc-gui-v2/components/smartsheet/Toolbar.vue

@ -33,12 +33,12 @@ const { isOpen } = useSidebar()
<SmartsheetToolbarExport v-if="!isUIAllowed('dataInsert')" />
<div class="flex-1" />
<SmartsheetToolbarReload class="mx-1" />
<SmartsheetToolbarAddRow v-if="isUIAllowed('dataInsert')" class="mx-1" />
<SmartsheetToolbarReload v-if="!isPublic" class="mx-1" />
<SmartsheetToolbarAddRow v-if="isUIAllowed('dataInsert') && !isPublic" class="mx-1" />
<SmartsheetToolbarSearchData v-if="(isGrid || isGallery) && !isPublic" class="shrink mr-2 ml-2" />
<ToggleDrawer v-if="!isOpen" class="mr-2" />
<ToggleDrawer v-if="!isOpen && !isPublic" class="mr-2" />
</div>
</template>

6
packages/nc-gui-v2/layouts/shared-view.vue

@ -19,11 +19,11 @@ export default {
</div>
<div>
<div class="flex justify-center items-center">
<div class="flex items-center gap-2 ml-3">
<div class="flex items-center gap-2 ml-3 text-white">
<template v-if="isLoading">
{{ $t('general.loading') }}
<span class="text-white">{{ $t('general.loading') }}</span>
<MdiReload :class="{ 'animate-infinite animate-spin': isLoading }" />
<MdiReload :class="{ 'animate-infinite animate-spin ': isLoading }" />
</template>
<div v-else class="text-xl font-semibold truncate text-white">
{{ sharedView?.title }}

Loading…
Cancel
Save