|
|
|
@ -3,7 +3,9 @@ import type { GridType } from 'nocodb-sdk'
|
|
|
|
|
import { ActiveViewInj, IsLockedInj, ReloadViewDataHookInj, inject, ref, useMenuCloseOnEsc } from '#imports' |
|
|
|
|
|
|
|
|
|
const view = inject(ActiveViewInj, ref()) |
|
|
|
|
|
|
|
|
|
const isLocked = inject(IsLockedInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const reloadDataHook = inject(ReloadViewDataHookInj) |
|
|
|
|
|
|
|
|
|
const { $api } = useNuxtApp() |
|
|
|
@ -49,14 +51,18 @@ useMenuCloseOnEsc(open)
|
|
|
|
|
<div class="w-full bg-gray-50 shadow-lg menu-filter-dropdown !border" data-testid="nc-height-menu"> |
|
|
|
|
<div class="text-gray-500 !text-xs px-4 py-2">Select a row height</div> |
|
|
|
|
<div class="flex flex-col w-full text-sm" @click.stop> |
|
|
|
|
<div class="flex items-center py-1 px-2 justify-center hover:bg-gray-200" @click="updateRowHeight(0)">Short</div> |
|
|
|
|
<div class="flex items-center py-1 px-2 justify-center hover:bg-gray-200" @click="updateRowHeight(1)">Medium</div> |
|
|
|
|
<div class="flex items-center py-1 px-2 justify-center hover:bg-gray-200" @click="updateRowHeight(2)">Tall</div> |
|
|
|
|
<div class="flex items-center py-1 px-2 justify-center hover:bg-gray-200" @click="updateRowHeight(3)">Extra</div> |
|
|
|
|
<div class="nc-row-height-option" @click="updateRowHeight(0)">Short</div> |
|
|
|
|
<div class="nc-row-height-option" @click="updateRowHeight(1)">Medium</div> |
|
|
|
|
<div class="nc-row-height-option" @click="updateRowHeight(2)">Tall</div> |
|
|
|
|
<div class="nc-row-height-option" @click="updateRowHeight(3)">Extra</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</a-dropdown> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<style scoped></style> |
|
|
|
|
<style scoped> |
|
|
|
|
.nc-row-height-option { |
|
|
|
|
@apply flex items-center py-1 px-2 justify-center hover:bg-gray-200 cursor-pointer; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|