Handle long descriptions (#228)
Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -291,7 +291,17 @@ export default function EventFormFields({
|
||||
size="small"
|
||||
margin="dense"
|
||||
multiline
|
||||
rows={2}
|
||||
minRows={2}
|
||||
maxRows={10}
|
||||
sx={{
|
||||
"& .MuiInputBase-root": {
|
||||
maxHeight: "33%",
|
||||
overflowY: "auto",
|
||||
},
|
||||
"& textarea": {
|
||||
resize: "vertical",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</FieldWithLabel>
|
||||
)}
|
||||
|
||||
@@ -62,7 +62,14 @@ export function InfoRow({
|
||||
content,
|
||||
}: InfoRowProps) {
|
||||
return (
|
||||
<Box style={{ display: "flex", alignItems: "center", gap: 1, mb: 1 }}>
|
||||
<Box
|
||||
style={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
gap: 1,
|
||||
marginBottom: 1,
|
||||
}}
|
||||
>
|
||||
{icon}
|
||||
{content ? (
|
||||
content
|
||||
@@ -70,7 +77,13 @@ export function InfoRow({
|
||||
<Typography
|
||||
variant="body2"
|
||||
color={error ? "error" : "textPrimary"}
|
||||
style={{ wordBreak: "break-word" }}
|
||||
style={{
|
||||
wordBreak: "break-word",
|
||||
whiteSpace: "pre-line",
|
||||
maxHeight: "33vh",
|
||||
overflowY: "auto",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
{data ? (
|
||||
<Link
|
||||
|
||||
@@ -490,7 +490,17 @@ function EventPopover({
|
||||
size="small"
|
||||
margin="dense"
|
||||
multiline
|
||||
rows={2}
|
||||
minRows={2}
|
||||
maxRows={10}
|
||||
sx={{
|
||||
"& .MuiInputBase-root": {
|
||||
maxHeight: "33%",
|
||||
overflowY: "auto",
|
||||
},
|
||||
"& textarea": {
|
||||
resize: "vertical",
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</FieldWithLabel>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user