Skip to content

Commit

Permalink
fix: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshmane7218 committed Dec 27, 2023
1 parent 4f4a071 commit 291532a
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 36 deletions.
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Currency.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,8 @@ onMounted(() => {
:ref="focus"
v-model="vModel"
type="number"
class="w-full h-full text-sm border-none rounded-md px-0 py-1 outline-none focus:outline-none focus:ring-0"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="w-full h-full text-sm border-none rounded-md py-1 outline-none focus:outline-none focus:ring-0"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="submitCurrency"
@keydown.down.stop
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Decimal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ watch(isExpandedFormOpen, () => {
v-if="editEnabled"
:ref="focus"
v-model="vModel"
class="outline-none px-0 py-1 border-none rounded-md w-full h-full !text-sm"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="outline-none py-1 border-none rounded-md w-full h-full !text-sm"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
type="number"
:step="precision"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Duration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
v-if="editEnabled"
:ref="focus"
v-model="localState"
class="w-full !border-none !outline-none px-0 py-1"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="w-full !border-none !outline-none py-1"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
:placeholder="durationPlaceholder"
@blur="submitDuration"
@keypress="checkDurationFormat($event)"
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Email.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ watch(
v-if="editEnabled"
:ref="focus"
v-model="vModel"
class="w-full outline-none text-sm px-0 py-1"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="w-full outline-none text-sm py-1"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false"
@keydown.down.stop
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Integer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ function onKeyDown(e: any) {
v-if="editEnabled"
:ref="focus"
v-model="vModel"
class="outline-none px-0 py-1 border-none w-full h-full text-sm"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="outline-none py-1 border-none w-full h-full text-sm"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
type="number"
style="letter-spacing: 0.06rem"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Percent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,8 @@ const onTabPress = (e: KeyboardEvent) => {
v-if="editEnabled"
:ref="focus"
v-model="vModel"
class="w-full !text-sm !border-none !outline-none focus:ring-0 text-base px-0 py-1"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="w-full !text-sm !border-none !outline-none focus:ring-0 text-base py-1"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
type="number"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="onBlur"
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/PhoneNumber.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ watch(
v-if="editEnabled"
:ref="focus"
v-model="vModel"
class="w-full outline-none text-sm px-0 py-1"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="w-full outline-none text-sm py-1"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false"
@keydown.down.stop
Expand Down
2 changes: 1 addition & 1 deletion packages/nc-gui/components/cell/RichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ watch(editorDom, () => {

<template>
<div
class="h-full focus:!outline-none focus-visible:!outline-none"
class="h-full focus:outline-none"
:class="{
'flex flex-col flex-grow nc-rich-text-full': props.fullMode,
'nc-rich-text-embed flex flex-col pl-1 w-full': !props.fullMode,
Expand Down
4 changes: 1 addition & 3 deletions packages/nc-gui/components/cell/Text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
:ref="focus"
v-model="vModel"
class="h-full w-full outline-none py-1 bg-transparent"
:class="{
'px-2': isExpandedFormOpen,
}"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
:placeholder="isEditColumn ? $t('labels.optional') : ''"
@blur="editEnabled = false"
@keydown.down.stop
Expand Down
6 changes: 2 additions & 4 deletions packages/nc-gui/components/cell/Url.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ watch(
:ref="focus"
v-model="vModel"
:placeholder="isEditColumn ? $t('labels.enterDefaultUrlOptional') : ''"
class="outline-none text-sm w-full px-0 py-1 bg-transparent h-full"
:class="{
'!px-2': isExpandedFormOpen,
}"
class="outline-none text-sm w-full py-1 bg-transparent h-full"
:class="isExpandedFormOpen ? 'px-2' : 'px-0'"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop
Expand Down

1 comment on commit 291532a

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR changes have been deployed. Please run the following command to verify:

docker run -d -p 8888:8080 nocodb/nocodb-timely:0.202.10-pr-7298-20231227-0719

Please sign in to comment.