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

Commit 4f3d761

Browse files
authored
Merge pull request #6968 from andybalaam/cryptographypanel-table
Convert CryptographyPanel to a table
2 parents 1d6c9fa + 61a5b49 commit 4f3d761

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

res/css/views/settings/_CryptographyPanel.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
.mx_CryptographyPanel_sessionInfo {
2-
display: table;
3-
padding-left: 0;
2+
padding: 0em;
3+
border-spacing: 0px;
44
}
5-
6-
.mx_CryptographyPanel_sessionInfo > li {
7-
display: table-row;
5+
.mx_CryptographyPanel_sessionInfo > tr {
6+
vertical-align: baseline;
7+
padding: 0em;
88
}
99

10-
.mx_CryptographyPanel_sessionInfo > li > label,
11-
.mx_CryptographyPanel_sessionInfo > li > span {
12-
display: table-cell;
10+
.mx_CryptographyPanel_sessionInfo > tr > td {
11+
padding-bottom: 0em;
12+
padding-left: 0em;
1313
padding-right: 1em;
14+
padding-top: 0em;
1415
}
1516

1617
.mx_CryptographyPanel_importExportButtons .mx_AccessibleButton {

src/components/views/settings/CryptographyPanel.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ export default class CryptographyPanel extends React.Component<IProps, IState> {
7474
return (
7575
<div className='mx_SettingsTab_section mx_CryptographyPanel'>
7676
<span className='mx_SettingsTab_subheading'>{ _t("Cryptography") }</span>
77-
<ul className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
78-
<li>
79-
<label>{ _t("Session ID:") }</label>
80-
<span><code>{ deviceId }</code></span>
81-
</li>
82-
<li>
83-
<label>{ _t("Session key:") }</label>
84-
<span><code><b>{ identityKey }</b></code></span>
85-
</li>
86-
</ul>
77+
<table className='mx_SettingsTab_subsectionText mx_CryptographyPanel_sessionInfo'>
78+
<tr>
79+
<td>{ _t("Session ID:") }</td>
80+
<td><code>{ deviceId }</code></td>
81+
</tr>
82+
<tr>
83+
<td>{ _t("Session key:") }</td>
84+
<td><code><b>{ identityKey }</b></code></td>
85+
</tr>
86+
</table>
8787
{ importExportButtons }
8888
{ noSendUnverifiedSetting }
8989
</div>

0 commit comments

Comments
 (0)