diff --git a/stylesheets/_session.scss b/stylesheets/_session.scss index 3ac42138b..2e9da6cc2 100644 --- a/stylesheets/_session.scss +++ b/stylesheets/_session.scss @@ -188,49 +188,11 @@ label { flex-direction: column; &__header { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - - padding: var(--margins-lg); - font-family: var(--font-default); - text-align: center; - line-height: 18px; font-size: var(--font-size-lg); font-weight: 500; - - &.reverse { - flex-direction: row-reverse; - - .session-modal__header__close > div { - float: right; - } - - .session-modal__header__icons > div { - float: left; - padding-inline-start: 0px; - padding-inline-end: 10px; - } - } - - &__icons, - &__close { - width: 60px; - } - &__icons { - float: right; - } - &__close > div { - float: left; - padding: var(--margins-xs); - margin: 0px; - } - &__icons > div { - float: right; - padding-inline-start: 10px; - } + text-align: center; + line-height: 18px; } &__body { diff --git a/ts/components/SessionWrapperModal.tsx b/ts/components/SessionWrapperModal.tsx index 775160a8f..e20c249e8 100644 --- a/ts/components/SessionWrapperModal.tsx +++ b/ts/components/SessionWrapperModal.tsx @@ -4,8 +4,10 @@ import useKey from 'react-use/lib/useKey'; import { SessionIconButton } from './icon'; -import { SessionButton, SessionButtonColor, SessionButtonType } from './basic/SessionButton'; import { SessionFocusTrap } from './SessionFocusTrap'; +import { Flex } from './basic/Flex'; +import { SessionButton, SessionButtonColor, SessionButtonType } from './basic/SessionButton'; +import { SpacerXL } from './basic/Text'; export type SessionWrapperModalType = { title?: string; @@ -73,34 +75,71 @@ export const SessionWrapperModal = (props: SessionWrapperModalType) => {