Skip to content

Commit

Permalink
feat(NestedSelect): Add ellipsis on modal title
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Mar 21, 2024
1 parent de57aff commit 341db5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions react/NestedSelect/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import List from '../List'

const NestedSelectDialogHeader = ({ onClickBack, showBack, title }) => {
const { dialogTitleProps } = useCozyDialog({
open: true
open: true,
onClose: true
})

if (!title) return null
Expand All @@ -28,7 +29,7 @@ const NestedSelectDialogHeader = ({ onClickBack, showBack, title }) => {
</IconButton>
</Img>
)}
<Bd>{title}</Bd>
<Bd className="u-ellipsis">{title}</Bd>
</Media>
</DialogTitle>
)
Expand All @@ -44,6 +45,7 @@ const NestedSelectDialogContent = ({ children }) => {

const NestedSelectModal = props => {
const { dialogProps } = useCozyDialog({ open: true })

return (
<Dialog {...dialogProps} onClose={props.onClose}>
<DialogCloseButton
Expand Down

0 comments on commit 341db5a

Please sign in to comment.