From 1dee39f419dfe63213d9d3ad959c059bd51d34cc Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Tue, 14 Jun 2022 13:20:54 +0000 Subject: [PATCH] Improve help user settings tab styling (#8838) * Set the default margin between the debug button and the subsection texts Signed-off-by: Suguru Hirahara * Remove obsolete style rule for AccessibleButton Signed-off-by: Suguru Hirahara * Remove the special block margin setting from the reload button Signed-off-by: Suguru Hirahara * Remove obsolete class name - mx_HelpUserSettingsTab_versions Signed-off-by: Suguru Hirahara * Replace
s for spacing with a margin style declaration Signed-off-by: Suguru Hirahara * Replace
for spacing with a margin style declaration Signed-off-by: Suguru Hirahara * Remove
s for spacing Signed-off-by: Suguru Hirahara * Apply mx_SettingsTab_subsectionText to the credits list Signed-off-by: Suguru Hirahara * Apply spacing-16 instead of spacing-12 Signed-off-by: Suguru Hirahara --- .../tabs/user/_HelpUserSettingsTab.scss | 21 +++++------ .../tabs/user/HelpUserSettingsTab.tsx | 35 +++++++++---------- 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/res/css/views/settings/tabs/user/_HelpUserSettingsTab.scss b/res/css/views/settings/tabs/user/_HelpUserSettingsTab.scss index 3779162223..c03de9f36c 100644 --- a/res/css/views/settings/tabs/user/_HelpUserSettingsTab.scss +++ b/res/css/views/settings/tabs/user/_HelpUserSettingsTab.scss @@ -15,16 +15,17 @@ See the License for the specific language governing permissions and limitations under the License. */ -.mx_HelpUserSettingsTab_debugButton { - margin-bottom: 5px; - margin-top: 5px; -} +.mx_HelpUserSettingsTab { + code { + word-break: break-all; + user-select: all; + } -.mx_HelpUserSettingsTab span.mx_AccessibleButton { - word-break: break-word; -} + details { + margin: $spacing-16 auto; -.mx_HelpUserSettingsTab code { - word-break: break-all; - user-select: all; + summary { + margin-bottom: $spacing-16; + } + } } diff --git a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx index 45ffa3e8ba..c4e0e5d87f 100644 --- a/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx @@ -110,7 +110,7 @@ export default class HelpUserSettingsTab extends React.Component } return ( -
+
{ _t("Legal") }
{ legalLinks } @@ -125,7 +125,7 @@ export default class HelpUserSettingsTab extends React.Component return ( + + { _t("Submit debug logs") } + +
{ _t( "To report a Matrix-related security issue, please read the Matrix.org " + "Security Disclosure Policy.", {}, @@ -280,7 +280,7 @@ export default class HelpUserSettingsTab extends React.Component { _t("Keyboard Shortcuts") }
-
+
{ _t("Versions") }
@@ -292,25 +292,22 @@ export default class HelpUserSettingsTab extends React.Component
{ this.renderLegal() } { this.renderCredits() } -
+
{ _t("Advanced") }
- { _t("Homeserver is") } { MatrixClientPeg.get().getHomeserverUrl() }
- { _t("Identity server is") } { MatrixClientPeg.get().getIdentityServerUrl() }
-
+
{ _t("Homeserver is") } { MatrixClientPeg.get().getHomeserverUrl() }
+
{ _t("Identity server is") } { MatrixClientPeg.get().getIdentityServerUrl() }
- { _t("Access Token") }
+ { _t("Access Token") } { _t("Your access token gives full access to your account." + " Do not share it with anyone.") } MatrixClientPeg.get().getAccessToken()}> { MatrixClientPeg.get().getAccessToken() } -

-
- - { _t("Clear cache and reload") } - -
+ + + { _t("Clear cache and reload") } +