feat: fix modal big size
This commit is contained in:
parent
6ad9051838
commit
dc67fd0bed
|
|
@ -559,6 +559,10 @@ html[dir='rtl'] [dir='ltr'] {
|
|||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ProseMirror * {
|
||||
white-space: break-spaces;
|
||||
}
|
||||
|
||||
.ProseMirror h2, .preview h2 {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
|
|
|
|||
|
|
@ -48,8 +48,6 @@ export const GeneralPreviewComponent: FC<{
|
|||
return { text: finalValue, images: p.image };
|
||||
});
|
||||
|
||||
console.log(renderContent);
|
||||
|
||||
return (
|
||||
<div className={clsx('w-full md:w-[555px] px-[16px]')}>
|
||||
<div className="w-full h-full relative flex flex-col">
|
||||
|
|
|
|||
|
|
@ -189,14 +189,15 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {
|
|||
|
||||
const sliceNeeded = checkAllValid.filter((p: any) => {
|
||||
return p.values.some((a: any) => {
|
||||
const strip = stripHtmlValidation('normal', a.content, true);
|
||||
const weightedLength = countCharacters(
|
||||
a.content,
|
||||
strip,
|
||||
p?.integration?.identifier || ''
|
||||
);
|
||||
const totalCharacters =
|
||||
weightedLength > a.content.length
|
||||
weightedLength > strip.length
|
||||
? weightedLength
|
||||
: a.content.length;
|
||||
: strip.length;
|
||||
|
||||
return totalCharacters > (p.maximumCharacters || 1000000);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue