Browse Source

Solving error description wrapping in survey and button overlap

pull/5531/head
nith2001 2 years ago
parent
commit
2a444e27a3
  1. 2
      packages/nc-gui/components/smartsheet/Cell.vue
  2. 6
      packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue

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

@ -188,7 +188,7 @@ onUnmounted(() => {
<template> <template>
<div <div
ref="elementToObserve" ref="elementToObserve"
class="nc-cell w-full h-full relative" class="nc-cell w-full relative"
:class="[ :class="[
`nc-cell-${(column?.uidt || 'default').toLowerCase()}`, `nc-cell-${(column?.uidt || 'default').toLowerCase()}`,
{ 'text-blue-600': isPrimary(column) && !props.virtual && !isForm }, { 'text-blue-600': isPrimary(column) && !props.virtual && !isForm },

6
packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue

@ -306,7 +306,7 @@ onMounted(() => {
/> />
<div class="flex flex-col gap-2 text-slate-500 dark:text-slate-300 text-[0.75rem] my-2 px-1"> <div class="flex flex-col gap-2 text-slate-500 dark:text-slate-300 text-[0.75rem] my-2 px-1">
<div v-for="error of v$.localState[field.title]?.$errors" :key="error" class="text-red-500"> <div v-for="error of v$.localState[field.title]?.$errors" :key="error" class="nc-form-field-required-error text-red-500">
{{ error.$message }} {{ error.$message }}
</div> </div>
<div <div
@ -499,9 +499,9 @@ onMounted(() => {
} }
} }
.nc-form-field-description { .nc-form-field-description, .nc-form-field-required-error {
white-space: pre-line;
word-break: break-all; word-break: break-all;
} }
.nc-form-column-label__checkbox { .nc-form-column-label__checkbox {

Loading…
Cancel
Save