diff --git a/stylesheets/_modal.scss b/stylesheets/_modal.scss index a331c7e47..6b4b82af0 100644 --- a/stylesheets/_modal.scss +++ b/stylesheets/_modal.scss @@ -142,3 +142,14 @@ } } } + +.user-details-dialog { + .session-confirm-wrapper { + .session-modal__header { + max-width: 400px; + } + .session-modal__body { + width: 400px; + } + } +} diff --git a/ts/components/SessionWrapperModal.tsx b/ts/components/SessionWrapperModal.tsx index f42e8e8e6..3bb0e7345 100644 --- a/ts/components/SessionWrapperModal.tsx +++ b/ts/components/SessionWrapperModal.tsx @@ -2,6 +2,7 @@ import classNames from 'classnames'; import { ReactNode, useRef } from 'react'; import useKey from 'react-use/lib/useKey'; +import styled from 'styled-components'; import { SessionIconButton } from './icon'; import { SessionFocusTrap } from './SessionFocusTrap'; @@ -9,6 +10,13 @@ import { Flex } from './basic/Flex'; import { SessionButton, SessionButtonColor, SessionButtonType } from './basic/SessionButton'; import { SpacerXL } from './basic/Text'; +const StyledTitle = styled.div` + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + padding: 0 var(--margins-sm); +`; + export type SessionWrapperModalType = { title?: string; showHeader?: boolean; @@ -115,7 +123,7 @@ export const SessionWrapperModal = (props: SessionWrapperModalType) => { }) : null} -