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

Commit

Permalink
Merge pull request #6968 from andybalaam/cryptographypanel-table
Browse files Browse the repository at this point in the history
Convert CryptographyPanel to a table
  • Loading branch information
andybalaam authored Oct 18, 2021
2 parents 1d6c9fa + 61a5b49 commit 4f3d761
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
17 changes: 9 additions & 8 deletions res/css/views/settings/_CryptographyPanel.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
.mx_CryptographyPanel_sessionInfo {
display: table;
padding-left: 0;
padding: 0em;
border-spacing: 0px;
}

.mx_CryptographyPanel_sessionInfo > li {
display: table-row;
.mx_CryptographyPanel_sessionInfo > tr {
vertical-align: baseline;
padding: 0em;
}

.mx_CryptographyPanel_sessionInfo > li > label,
.mx_CryptographyPanel_sessionInfo > li > span {
display: table-cell;
.mx_CryptographyPanel_sessionInfo > tr > td {
padding-bottom: 0em;
padding-left: 0em;
padding-right: 1em;
padding-top: 0em;
}

.mx_CryptographyPanel_importExportButtons .mx_AccessibleButton {
Expand Down
20 changes: 10 additions & 10 deletions src/components/views/settings/CryptographyPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ export default class CryptographyPanel extends React.Component<IProps, IState> {
return (
<div className='mx_SettingsTab_section mx_CryptographyPanel'>
<span className='mx_SettingsTab_subheading'>{ _t("Cryptography") }</span>
<ul className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
<li>
<label>{ _t("Session ID:") }</label>
<span><code>{ deviceId }</code></span>
</li>
<li>
<label>{ _t("Session key:") }</label>
<span><code><b>{ identityKey }</b></code></span>
</li>
</ul>
<table className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
<tr>
<td>{ _t("Session ID:") }</td>
<td><code>{ deviceId }</code></td>
</tr>
<tr>
<td>{ _t("Session key:") }</td>
<td><code><b>{ identityKey }</b></code></td>
</tr>
</table>
{ importExportButtons }
{ noSendUnverifiedSetting }
</div>
Expand Down

0 comments on commit 4f3d761

Please sign in to comment.