feat: fix modal big size

This commit is contained in:
Nevo David 2025-07-21 17:45:26 +07:00
parent 6ad9051838
commit dc67fd0bed
3 changed files with 8 additions and 5 deletions

View File

@ -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;

View File

@ -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">

View File

@ -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);
});