From 474eab853e65170a7b7089fd7d9a730b83c8ed5c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 Dec 2023 11:55:26 +0000 Subject: [PATCH 1/7] Fix Compound tooltips in Dialogs Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- res/css/_common.pcss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/res/css/_common.pcss b/res/css/_common.pcss index 29bb165e7b1..c807689dd38 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -56,6 +56,11 @@ limitations under the License. /* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */ contain: strict; } +.mx_Dialog_StaticContainer, +.mx_Dialog_Container { + /* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */ + isolation: isolate; +} /** * We need to increase the specificity of the selector to override the From c5e159b4934f4339edfb23672c383e175cc02246 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 Dec 2023 11:56:53 +0000 Subject: [PATCH 2/7] Fix setting labels not being correctly linked Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/elements/LabelledToggleSwitch.tsx | 4 ++-- src/components/views/elements/SettingsFlag.tsx | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/views/elements/LabelledToggleSwitch.tsx b/src/components/views/elements/LabelledToggleSwitch.tsx index 2a1540920b2..a48bbe3709e 100644 --- a/src/components/views/elements/LabelledToggleSwitch.tsx +++ b/src/components/views/elements/LabelledToggleSwitch.tsx @@ -51,17 +51,17 @@ export default class LabelledToggleSwitch extends React.PureComponent { const { label, caption } = this.props; let firstPart = ( -
{label}
+ {caption && {caption}}
); let secondPart = ( ); diff --git a/src/components/views/elements/SettingsFlag.tsx b/src/components/views/elements/SettingsFlag.tsx index 09bfa5d2419..df4a08c1d57 100644 --- a/src/components/views/elements/SettingsFlag.tsx +++ b/src/components/views/elements/SettingsFlag.tsx @@ -16,6 +16,7 @@ limitations under the License. */ import React from "react"; +import { randomString } from "matrix-js-sdk/src/randomstring"; import SettingsStore from "../../../settings/SettingsStore"; import { _t } from "../../../languageHandler"; @@ -44,6 +45,8 @@ interface IState { } export default class SettingsFlag extends React.Component { + private readonly id = `mx_SettingsFlag_${randomString(12)}`; + public constructor(props: IProps) { super(props); @@ -119,7 +122,7 @@ export default class SettingsFlag extends React.Component { } else { return (
-