Skip to content

Commit 68dd47a

Browse files
authored
Make member device info buttons fluid and stackable with flexbox
Buttons with short text stay as they are, buttons with long text don't get overflowed, but just grow and wrap on a new line if needed, still remaining aligned with others (see screenshot in PR comments) Signed-off-by: Andrei Shevchuk <andrei@shevchuk.co>
1 parent 535e335 commit 68dd47a

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_MemberDeviceInfo.scss‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ limitations under the License.
1818
padding: 10px 0px;
1919
}
2020

21+
.mx_MemberDeviceInfo.mx_DeviceVerifyButtons {
22+
width: 100%;
23+
padding: 6px 0;
24+
display: flex;
25+
flex-wrap: wrap;
26+
justify-content: space-between;
27+
}
2128

2229
.mx_MemberDeviceInfo_textButton {
2330
color: $accent-fg-color;
@@ -26,12 +33,11 @@ limitations under the License.
2633
text-align: center;
2734
padding-left: 1em;
2835
padding-right: 1em;
29-
width: 95px;
3036
border: 0px;
3137
font-size: 14px;
32-
3338
cursor: pointer;
34-
display: inline;
39+
margin: 2px;
40+
flex: 1;
3541
}
3642

3743
.mx_MemberDeviceInfo_deviceId {
@@ -44,11 +50,6 @@ limitations under the License.
4450
border-bottom: 1px solid rgba(0,0,0,0.1);
4551
}
4652

47-
.mx_MemberDeviceInfo_blacklist,
48-
.mx_MemberDeviceInfo_unblacklist {
49-
float: right;
50-
}
51-
5253
/* "Unblacklist" is too long for a regular button: make it wider and
5354
reduce the padding. */
5455
.mx_EncryptedEventDialog .mx_MemberDeviceInfo_blacklist,

0 commit comments

Comments
 (0)