fix(bug): remove overflow of comment (#206) (#207)

This commit is contained in:
Vedant
2025-10-08 00:53:01 +05:30
committed by GitHub
parent fc692cb411
commit 362381f516
3 changed files with 16 additions and 2 deletions

View File

@@ -25,3 +25,17 @@
width: 200%;
height: 200%;
}
@layer utilities {
@supports not (overflow-wrap: anywhere) {
.break-anywhere {
word-break: break-word;
}
}
@supports (overflow-wrap: anywhere) {
.break-anywhere {
overflow-wrap: anywhere;
}
}
}

View File

@@ -138,7 +138,7 @@ const Comment = ({
<ContentEditable
html={comment ?? ""}
disabled={true}
className="mt-2 text-sm"
className="break-anywhere mt-2 text-sm"
/>
) : (
<form onSubmit={handleSubmit(onSubmit)}>

View File

@@ -16,4 +16,4 @@ export default {
},
},
},
} satisfies Config;
} satisfies Config;