Skip to content

Commit dc67fd0

Browse files
committed
feat: fix modal big size
1 parent 6ad9051 commit dc67fd0

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

apps/frontend/src/app/global.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ html[dir='rtl'] [dir='ltr'] {
559559
font-weight: bold;
560560
}
561561

562+
.ProseMirror * {
563+
white-space: break-spaces;
564+
}
565+
562566
.ProseMirror h2, .preview h2 {
563567
font-size: 20px;
564568
font-weight: bold;

apps/frontend/src/components/launches/general.preview.component.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ export const GeneralPreviewComponent: FC<{
4848
return { text: finalValue, images: p.image };
4949
});
5050

51-
console.log(renderContent);
52-
5351
return (
5452
<div className={clsx('w-full md:w-[555px] px-[16px]')}>
5553
<div className="w-full h-full relative flex flex-col">

apps/frontend/src/components/new-launch/manage.modal.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,15 @@ export const ManageModal: FC<AddEditModalProps> = (props) => {
189189

190190
const sliceNeeded = checkAllValid.filter((p: any) => {
191191
return p.values.some((a: any) => {
192+
const strip = stripHtmlValidation('normal', a.content, true);
192193
const weightedLength = countCharacters(
193-
a.content,
194+
strip,
194195
p?.integration?.identifier || ''
195196
);
196197
const totalCharacters =
197-
weightedLength > a.content.length
198+
weightedLength > strip.length
198199
? weightedLength
199-
: a.content.length;
200+
: strip.length;
200201

201202
return totalCharacters > (p.maximumCharacters || 1000000);
202203
});

0 commit comments

Comments
 (0)