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"
|
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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user