This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 2 files changed +36
-10
lines changed
res/css/views/dialogs/security
src/async-components/views/dialogs/security
2 files changed +36
-10
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ limitations under the License.
74
74
.mx_CreateSecretStorageDialog_primaryContainer {
75
75
/* FIXME: plinth colour in new theme(s). background-color: $accent-color; */
76
76
padding-top : 20px ;
77
+
78
+ & .mx_CreateSecretStorageDialog_recoveryKeyPrimarycontainer {
79
+ display : flex ;
80
+ justify-content : center ;
81
+ }
77
82
}
78
83
79
84
.mx_CreateSecretStorageDialog_primaryContainer ::after {
@@ -127,9 +132,7 @@ limitations under the License.
127
132
}
128
133
129
134
.mx_CreateSecretStorageDialog_recoveryKeyContainer {
130
- width : 380px ;
131
- margin-left : auto ;
132
- margin-right : auto ;
135
+ display : inline-block ;
133
136
}
134
137
135
138
.mx_CreateSecretStorageDialog_recoveryKey {
@@ -141,18 +144,29 @@ limitations under the License.
141
144
border-radius : 6px ;
142
145
word-spacing : 1em ;
143
146
margin-bottom : 20px ;
147
+
148
+ code {
149
+ display : inline-block ;
150
+ width : 30rem ;
151
+ }
144
152
}
145
153
146
154
.mx_CreateSecretStorageDialog_recoveryKeyButtons {
147
- display : flex ;
148
- justify-content : space-between ;
149
155
align-items : center ;
156
+ display : flex ;
157
+ gap : 16px ;
158
+ }
159
+
160
+ .mx_CreateSecretStorageDialog_recoveryKeyButtons_copyBtn {
161
+ flex-direction : column ;
162
+ }
163
+
164
+ .mx_CreateSecretStorageDialog_recoveryKeyCopyButtonText {
165
+ overflow-y : hidden ;
150
166
}
151
167
152
168
.mx_CreateSecretStorageDialog_recoveryKeyButtons .mx_AccessibleButton {
153
- width : 160px ;
154
- padding-left : 0px ;
155
- padding-right : 0px ;
169
+ flex-grow : 1 ;
156
170
white-space : nowrap ;
157
171
}
158
172
Original file line number Diff line number Diff line change @@ -714,12 +714,13 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
714
714
< InlineSpinner />
715
715
</ div > ;
716
716
}
717
+
717
718
return < div >
718
719
< p > { _t (
719
720
"Store your Security Key somewhere safe, like a password manager or a safe, " +
720
721
"as it’s used to safeguard your encrypted data." ,
721
722
) } </ p >
722
- < div className = "mx_CreateSecretStorageDialog_primaryContainer" >
723
+ < div className = "mx_CreateSecretStorageDialog_primaryContainer mx_CreateSecretStorageDialog_recoveryKeyPrimarycontainer " >
723
724
< div className = "mx_CreateSecretStorageDialog_recoveryKeyContainer" >
724
725
< div className = "mx_CreateSecretStorageDialog_recoveryKey" >
725
726
< code ref = { this . recoveryKeyNode } > { this . recoveryKey . encodedPrivateKey } </ code >
@@ -739,7 +740,18 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
739
740
onClick = { this . onCopyClick }
740
741
disabled = { this . state . phase === Phase . Storing }
741
742
>
742
- { this . state . copied ? _t ( "Copied!" ) : _t ( "Copy" ) }
743
+ < span
744
+ className = "mx_CreateSecretStorageDialog_recoveryKeyCopyButtonText"
745
+ style = { { height : this . state . copied ? '0' : 'auto' } }
746
+ >
747
+ { _t ( "Copy" ) }
748
+ </ span >
749
+ < span
750
+ className = "mx_CreateSecretStorageDialog_recoveryKeyCopyButtonText"
751
+ style = { { height : this . state . copied ? 'auto' : '0' } }
752
+ >
753
+ { _t ( "Copied!" ) }
754
+ </ span >
743
755
</ AccessibleButton >
744
756
</ div >
745
757
</ div >
You can’t perform that action at this time.
0 commit comments