From 2c82ff85a52b4d713c255e065ef4c4bf5f474ae5 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 8 Nov 2023 20:35:20 +0500 Subject: [PATCH] MM-55050 - Updating Terms of Service page (#25163) * MM-55050 - Updating Terms of Service page * Updating button group * Updating button style * Updating bsstyle --------- Co-authored-by: Mattermost Build --- .../terms_of_service/terms_of_service.tsx | 93 +++++++++---------- webapp/channels/src/sass/routes/_signup.scss | 24 ++--- webapp/channels/src/sass/utils/_flex.scss | 8 ++ 3 files changed, 66 insertions(+), 59 deletions(-) diff --git a/webapp/channels/src/components/terms_of_service/terms_of_service.tsx b/webapp/channels/src/components/terms_of_service/terms_of_service.tsx index cddb2c6d63..68421de540 100644 --- a/webapp/channels/src/components/terms_of_service/terms_of_service.tsx +++ b/webapp/channels/src/components/terms_of_service/terms_of_service.tsx @@ -2,7 +2,7 @@ // See LICENSE.txt for license information. import React from 'react'; -import {Button, ButtonGroup} from 'react-bootstrap'; +import {Button} from 'react-bootstrap'; import {FormattedMessage} from 'react-intl'; import type {TermsOfService as ReduxTermsOfService} from '@mattermost/types/terms_of_service'; @@ -169,7 +169,7 @@ export default class TermsOfService extends React.PureComponent +
-
-
-
-
+
+
+ {messageHtmlToComponent(this.formattedText(this.state.customTermsOfServiceText), {mentions: false})} +
+
+
+
+ + +
+ {Boolean(this.state.serverError) && ( +
+ + {' '} + {this.state.serverError}
-
-
- - - - - {Boolean(this.state.serverError) && ( -
- - {' '} - {this.state.serverError} -
- )} -
+ )}
diff --git a/webapp/channels/src/sass/routes/_signup.scss b/webapp/channels/src/sass/routes/_signup.scss index 82411b84e1..ee3f5558a2 100644 --- a/webapp/channels/src/sass/routes/_signup.scss +++ b/webapp/channels/src/sass/routes/_signup.scss @@ -8,6 +8,12 @@ body { } } +.signup-page-container { + display: flex; + height: 100vh; + flex-direction: column; +} + .signup-header { position: fixed; z-index: 5; @@ -25,8 +31,12 @@ body { .signup-team__container { position: relative; + display: flex; + overflow: hidden; max-width: 400px; - padding: 100px 0 50px; + flex: 1; + flex-direction: column; + padding: 40px 0 0; margin: 0 auto; .medium-center { @@ -37,6 +47,7 @@ body { .terms-of-service__markdown { min-width: 100vw; + flex: 1; padding-top: 3em; padding-bottom: 3em; background-color: #fff; @@ -87,7 +98,6 @@ body { &.terms-of-service__container { max-width: 100%; - padding-top: 33px; } .terms-of-service__footer { @@ -112,16 +122,6 @@ body { box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } - .terms-of-service-error__height--fill { - height: calc(100vh - 107px - 4em); - min-height: calc(100vh - 107px - 4em); - } - - .terms-of-service__height--fill { - height: calc(100vh - 69px - 3em); - min-height: calc(100vh - 69px - 3em); - } - h1, h2, h3, diff --git a/webapp/channels/src/sass/utils/_flex.scss b/webapp/channels/src/sass/utils/_flex.scss index 2d55986936..cdeb2f5087 100644 --- a/webapp/channels/src/sass/utils/_flex.scss +++ b/webapp/channels/src/sass/utils/_flex.scss @@ -4,6 +4,14 @@ display: flex !important; } +.flex-col { + flex-direction: column; +} + +.flex-1 { + flex: 1; +} + .align-items-center { align-items: center !important; -webkit-box-align: center !important;