diff --git a/res/css/views/verification/_VerificationShowSas.scss b/res/css/views/verification/_VerificationShowSas.scss index af003112f7..5910711fcd 100644 --- a/res/css/views/verification/_VerificationShowSas.scss +++ b/res/css/views/verification/_VerificationShowSas.scss @@ -62,20 +62,13 @@ limitations under the License. flex-basis: 100%; } -.mx_VerificationShowSas { - .mx_Dialog_buttons { - // this is more specific than the DialogButtons css so gets preference - button.mx_VerificationShowSas_matchButton { - color: $accent-color; - background-color: $accent-bg-color; - border: none; - } +.mx_VerificationShowSas_buttonRow { + text-align: center; + display: flex; + flex-wrap: wrap; + justify-content: center; - // this is more specific than the DialogButtons css so gets preference - button.mx_VerificationShowSas_noMatchButton { - color: $notice-primary-color; - background-color: $notice-primary-bg-color; - border: none; - } + .mx_AccessibleButton { + margin-inline: 9px; } } diff --git a/src/components/views/verification/VerificationShowSas.tsx b/src/components/views/verification/VerificationShowSas.tsx index 609255a565..fde79ea91e 100644 --- a/src/components/views/verification/VerificationShowSas.tsx +++ b/src/components/views/verification/VerificationShowSas.tsx @@ -20,7 +20,6 @@ import { DeviceInfo } from "matrix-js-sdk/src//crypto/deviceinfo"; import { _t, _td } from '../../../languageHandler'; import { PendingActionSpinner } from "../right_panel/EncryptionInfo"; import AccessibleButton from "../elements/AccessibleButton"; -import DialogButtons from "../elements/DialogButtons"; import { fixupColorFonts } from '../../../utils/FontManager'; import { replaceableComponent } from "../../../utils/replaceableComponent"; @@ -143,25 +142,15 @@ export default class VerificationShowSas extends React.Component text = _t("Cancelling…"); } confirm = ; - } else if (this.props.inDialog) { - // FIXME: stop using DialogButtons here once this component is only used in the right panel verification - confirm = ; } else { - confirm = + confirm =
{ _t("They don't match") } { _t("They match") } - ; +
; } return