mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 21:00:45 +00:00
CE-882 - Better handling of stupidly long titles
This commit is contained in:
@ -369,15 +369,15 @@ export default function ShareModal({open, onClose, tableMetaData, record}: Share
|
|||||||
<Card sx={{my: 5, mx: "auto", p: 3}}>
|
<Card sx={{my: 5, mx: "auto", p: 3}}>
|
||||||
|
|
||||||
{/* header */}
|
{/* header */}
|
||||||
<Box display="flex" flexDirection="row" justifyContent="space-between" alignItems="flex-start">
|
<Box display="flex" flexDirection="row" justifyContent="space-between" alignItems="flex-start" maxWidth="590px">
|
||||||
<Typography variant="h4" pb={1} fontWeight="600">
|
<Typography variant="h4" pb={1} fontWeight="600">
|
||||||
Share {tableMetaData.label}: {record?.recordLabel ?? record?.values?.get(tableMetaData.primaryKeyField) ?? "Unknown"}
|
Share {tableMetaData.label}: {record?.recordLabel ?? record?.values?.get(tableMetaData.primaryKeyField) ?? "Unknown"}
|
||||||
<Box color={colors.gray.main} pb={"0.5rem"} fontSize={"0.875rem"} fontWeight="400" maxWidth="590px">
|
<Box color={colors.gray.main} pb={"0.5rem"} fontSize={"0.875rem"} fontWeight="400">
|
||||||
{/* todo move to helpContent (what do we attach the meta-data too??) */}
|
{/* todo move to helpContent (what do we attach the meta-data too??) */}
|
||||||
Select a user or a group to share this record with.
|
Select a user or a group to share this record with.
|
||||||
{/*You can choose if they should only be able to Read the record, or also make Edits to it.*/}
|
{/*You can choose if they should only be able to Read the record, or also make Edits to it.*/}
|
||||||
</Box>
|
</Box>
|
||||||
<Box fontSize={14} maxWidth="590px" pb={1} fontWeight="300">
|
<Box fontSize={14} pb={1} fontWeight="300">
|
||||||
{alert && <Alert color="error" onClose={() => setAlert(null)}>{alert}</Alert>}
|
{alert && <Alert color="error" onClose={() => setAlert(null)}>{alert}</Alert>}
|
||||||
{statusString}
|
{statusString}
|
||||||
{!alert && !statusString && (<> </>)}
|
{!alert && !statusString && (<> </>)}
|
||||||
|
Reference in New Issue
Block a user