Browse Source

fix(nc-gui): small changes

pull/7741/head
Ramesh Mane 4 months ago
parent
commit
7a206b1704
  1. 12
      packages/nc-gui/components/cell/RichText.vue
  2. 3
      packages/nc-gui/components/smartsheet/Form.vue
  3. 2
      packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/index.vue
  4. 4
      packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue

12
packages/nc-gui/components/cell/RichText.vue

@ -291,6 +291,18 @@ onClickOutside(editorDom, (e) => {
.ProseMirror {
padding: 0;
}
&.readonly {
ul[data-type='taskList'] li input[type='checkbox'] {
background-color: #d5d5d9 !important;
&:not(:checked) {
@apply !border-gray-400;
}
&:focus {
box-shadow: none !important;
background-color: #d5d5d9 !important;
}
}
}
}
&.readonly {
.nc-textarea-rich-editor {

3
packages/nc-gui/components/smartsheet/Form.vue

@ -605,7 +605,8 @@ useEventListener(
(e: FocusEvent) => {
const nextActiveFieldTitle =
(e?.relatedTarget as HTMLElement)?.getAttribute('data-title') ||
(e?.relatedTarget as HTMLElement)?.offsetParent?.closest('.nc-form-focus-element')?.getAttribute('data-title')
(e?.relatedTarget as HTMLElement)?.offsetParent?.closest('.nc-form-focus-element')?.getAttribute('data-title') ||
(e?.relatedTarget as HTMLElement)?.closest('.nc-form-focus-element')?.getAttribute('data-title')
if (activeRow.value && nextActiveFieldTitle && activeRow.value !== nextActiveFieldTitle) {
if (isTabPressed.value) {

2
packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/index.vue

@ -112,7 +112,7 @@ const onDecode = async (scannedCodeValue: string) => {
<div class="flex justify-center">
<div v-if="sharedFormView" class="w-full lg:w-[95%]">
<a-alert
class="!my-4 !py-4 text-center !rounded-lg"
class="!my-4 !py-4 text-left !rounded-lg"
type="success"
data-testid="nc-survey-form__success-msg"
outlined

4
packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue

@ -245,7 +245,7 @@ onMounted(() => {
<h1 class="text-2xl font-bold text-gray-900 self-center text-center my-4" data-testid="nc-survey-form__heading">
{{ sharedFormView.heading }}
</h1>
<div v-if="sharedFormView.subheading?.trim()" class="w-full text-center">
<div v-if="sharedFormView.subheading?.trim()" class="w-full">
<LazyCellRichText
:value="sharedFormView.subheading"
class="font-medium text-base text-gray-500 dark:text-slate-300 !h-auto mb-4 -ml-1"
@ -376,7 +376,7 @@ onMounted(() => {
<Transition name="slide-left">
<div v-if="submitted" class="flex flex-col justify-center items-center text-center">
<a-alert
class="!my-4 !py-4 text-center !rounded-lg"
class="!my-4 !py-4 !rounded-lg text-left"
type="success"
data-testid="nc-survey-form__success-msg"
outlined

Loading…
Cancel
Save