Skip to content

Commit 3734878

Browse files
Merge pull request #242 from steppefox/KGS-183-button-size-bug
fix(ui): Issue #183 - Fix UI bug with room links in small tablet view
2 parents 20f6eb5 + 982e5ba commit 3734878

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

src/css/_chat.scss

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -467,27 +467,25 @@ a.ChatMessages-game-deleted {
467467
}
468468

469469
.RoomGameLinks {
470-
// background: $chat-message-bg;
471-
margin: 20px 0 0 0;
472-
// margin-bottom: 20px;
473-
// border-bottom: 2px solid $chat-divider;
474-
// padding-bottom: 20px;
470+
display: flex;
471+
margin: 20px 0 -10px -10px;
472+
flex-wrap: wrap;
473+
align-items: center;
475474
}
476475

477476
.RoomGameLink {
478-
display: inline-block;
479-
width: 49%;
477+
display: block;
478+
flex: 1 1 auto;
479+
padding-left: 10px;
480+
padding-bottom: 10px;
480481
line-height: 38px;
481482

482483
a {
483484
display: block;
484-
// background: $chat-message-bg;
485-
// color: $link-color;
486485
border: 2px solid $very-muted;
487486
padding: 7px 10px 7px 10px;
488487
background: $content-bg;
489488
border-radius: 15px;
490-
// max-width: 400px;
491489
font-size: 14px;
492490
box-sizing: border-box;
493491
height: 38px;
@@ -497,10 +495,6 @@ a.ChatMessages-game-deleted {
497495
border: 2px solid $muted;
498496
}
499497
}
500-
501-
&:first-child {
502-
margin-right: 2%;
503-
}
504498
}
505499

506500
.no-touch .RoomGameLink a:hover {
@@ -514,21 +508,6 @@ a.ChatMessages-game-deleted {
514508
margin: 0 10px 0 5px;
515509
}
516510

517-
@media #{$mobile-query} {
518-
.RoomGameLink {
519-
display: block;
520-
width: auto;
521-
522-
&:first-child {
523-
margin-right: 0;
524-
}
525-
}
526-
527-
.RoomGameLink+.RoomGameLink {
528-
margin-top: 5px;
529-
}
530-
}
531-
532511
.RoomGameLink-label {
533512
display: inline-block;
534513
vertical-align: middle;

0 commit comments

Comments
 (0)