Handle long descriptions (#228)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-10-21 12:17:36 +02:00
committed by GitHub
parent aa1dddc7ba
commit e99c56f03f
3 changed files with 37 additions and 4 deletions
+11 -1
View File
@@ -291,7 +291,17 @@ export default function EventFormFields({
size="small" size="small"
margin="dense" margin="dense"
multiline multiline
rows={2} minRows={2}
maxRows={10}
sx={{
"& .MuiInputBase-root": {
maxHeight: "33%",
overflowY: "auto",
},
"& textarea": {
resize: "vertical",
},
}}
/> />
</FieldWithLabel> </FieldWithLabel>
)} )}
+15 -2
View File
@@ -62,7 +62,14 @@ export function InfoRow({
content, content,
}: InfoRowProps) { }: InfoRowProps) {
return ( return (
<Box style={{ display: "flex", alignItems: "center", gap: 1, mb: 1 }}> <Box
style={{
display: "flex",
alignItems: "center",
gap: 1,
marginBottom: 1,
}}
>
{icon} {icon}
{content ? ( {content ? (
content content
@@ -70,7 +77,13 @@ export function InfoRow({
<Typography <Typography
variant="body2" variant="body2"
color={error ? "error" : "textPrimary"} color={error ? "error" : "textPrimary"}
style={{ wordBreak: "break-word" }} style={{
wordBreak: "break-word",
whiteSpace: "pre-line",
maxHeight: "33vh",
overflowY: "auto",
width: "100%",
}}
> >
{data ? ( {data ? (
<Link <Link
+11 -1
View File
@@ -490,7 +490,17 @@ function EventPopover({
size="small" size="small"
margin="dense" margin="dense"
multiline multiline
rows={2} minRows={2}
maxRows={10}
sx={{
"& .MuiInputBase-root": {
maxHeight: "33%",
overflowY: "auto",
},
"& textarea": {
resize: "vertical",
},
}}
/> />
</FieldWithLabel> </FieldWithLabel>
)} )}