Browse Source

chore(nc-gui): update cell styles

pull/3669/head
braks 2 years ago committed by Raju Udava
parent
commit
4f68489fb1
  1. 6
      packages/nc-gui/components/cell/Url.vue
  2. 2
      packages/nc-gui/components/smartsheet/Cell.vue

6
packages/nc-gui/components/cell/Url.vue

@ -28,9 +28,9 @@ const column = inject(ColumnInj)!
const editEnabled = inject(EditModeInj)! const editEnabled = inject(EditModeInj)!
const disableOverlay = inject(CellUrlDisableOverlayInj) const disableOverlay = inject(CellUrlDisableOverlayInj, ref(false))
// Used in the logic of when to display error since we are not storing the url if its not valid // Used in the logic of when to display error since we are not storing the url if it's not valid
const localState = ref(value) const localState = ref(value)
const vModel = computed({ const vModel = computed({
@ -72,7 +72,7 @@ watch(
</script> </script>
<template> <template>
<div class="flex flex-row items-center justify-between"> <div class="flex flex-row items-center justify-between w-full h-full">
<input v-if="editEnabled" :ref="focus" v-model="vModel" class="outline-none text-sm w-full" @blur="editEnabled = false" /> <input v-if="editEnabled" :ref="focus" v-model="vModel" class="outline-none text-sm w-full" @blur="editEnabled = false" />
<nuxt-link <nuxt-link

2
packages/nc-gui/components/smartsheet/Cell.vue

@ -136,7 +136,7 @@ const syncAndNavigate = (dir: NavigateDir) => {
<template> <template>
<div <div
class="nc-cell w-full h-full" class="nc-cell"
:class="[`nc-cell-${(column?.uidt || 'default').toLowerCase()}`, { 'text-blue-600': isPrimary && !virtual && !isForm }]" :class="[`nc-cell-${(column?.uidt || 'default').toLowerCase()}`, { 'text-blue-600': isPrimary && !virtual && !isForm }]"
@keydown.stop.left @keydown.stop.left
@keydown.stop.right @keydown.stop.right

Loading…
Cancel
Save