Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
RiotRobot committed Jun 14, 2022
2 parents 045d895 + 1dee39f commit 7d14d15
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
21 changes: 11 additions & 10 deletions res/css/views/settings/tabs/user/_HelpUserSettingsTab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
35 changes: 16 additions & 19 deletions src/components/views/settings/tabs/user/HelpUserSettingsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
}

return (
<div className='mx_SettingsTab_section mx_HelpUserSettingsTab_versions'>
<div className='mx_SettingsTab_section'>
<span className='mx_SettingsTab_subheading'>{ _t("Legal") }</span>
<div className='mx_SettingsTab_subsectionText'>
{ legalLinks }
Expand All @@ -125,7 +125,7 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
return (
<div className='mx_SettingsTab_section'>
<span className='mx_SettingsTab_subheading'>{ _t("Credits") }</span>
<ul>
<ul className='mx_SettingsTab_subsectionText'>
<li>
The <a href="themes/element/img/backgrounds/lake.jpg" rel="noreferrer noopener" target="_blank">
default cover photo
Expand Down Expand Up @@ -245,11 +245,11 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
"last interacted with, and the usernames of other users. " +
"They do not contain messages.",
) }
<div className='mx_HelpUserSettingsTab_debugButton'>
<AccessibleButton onClick={this.onBugReport} kind='primary'>
{ _t("Submit debug logs") }
</AccessibleButton>
</div>
</div>
<AccessibleButton onClick={this.onBugReport} kind='primary'>
{ _t("Submit debug logs") }
</AccessibleButton>
<div className='mx_SettingsTab_subsectionText'>
{ _t(
"To report a Matrix-related security issue, please read the Matrix.org " +
"<a>Security Disclosure Policy</a>.", {},
Expand Down Expand Up @@ -280,7 +280,7 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
{ _t("Keyboard Shortcuts") }
</AccessibleButton>
</div>
<div className='mx_SettingsTab_section mx_HelpUserSettingsTab_versions'>
<div className='mx_SettingsTab_section'>
<span className='mx_SettingsTab_subheading'>{ _t("Versions") }</span>
<div className='mx_SettingsTab_subsectionText'>
<CopyableText getTextToCopy={this.getVersionTextToCopy}>
Expand All @@ -292,25 +292,22 @@ export default class HelpUserSettingsTab extends React.Component<IProps, IState>
</div>
{ this.renderLegal() }
{ this.renderCredits() }
<div className='mx_SettingsTab_section mx_HelpUserSettingsTab_versions'>
<div className='mx_SettingsTab_section'>
<span className='mx_SettingsTab_subheading'>{ _t("Advanced") }</span>
<div className='mx_SettingsTab_subsectionText'>
{ _t("Homeserver is") } <code>{ MatrixClientPeg.get().getHomeserverUrl() }</code><br />
{ _t("Identity server is") } <code>{ MatrixClientPeg.get().getIdentityServerUrl() }</code><br />
<br />
<div>{ _t("Homeserver is") } <code>{ MatrixClientPeg.get().getHomeserverUrl() }</code></div>
<div>{ _t("Identity server is") } <code>{ MatrixClientPeg.get().getIdentityServerUrl() }</code></div>
<details>
<summary>{ _t("Access Token") }</summary><br />
<summary>{ _t("Access Token") }</summary>
<b>{ _t("Your access token gives full access to your account."
+ " Do not share it with anyone.") }</b>
<CopyableText getTextToCopy={() => MatrixClientPeg.get().getAccessToken()}>
{ MatrixClientPeg.get().getAccessToken() }
</CopyableText>
</details><br />
<div className='mx_HelpUserSettingsTab_debugButton'>
<AccessibleButton onClick={this.onClearCacheAndReload} kind='danger'>
{ _t("Clear cache and reload") }
</AccessibleButton>
</div>
</details>
<AccessibleButton onClick={this.onClearCacheAndReload} kind='danger'>
{ _t("Clear cache and reload") }
</AccessibleButton>
</div>
</div>
</div>
Expand Down

0 comments on commit 7d14d15

Please sign in to comment.