Skip to content

Commit a0bae9e

Browse files
authored
Merge pull request MarkBind#75 from Chng-Zhi-Xuan/335-panel-button
Align Panel buttons on mobile and added responsive CSS
2 parents 21f7136 + 4e86958 commit a0bae9e

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

src/Panel.vue

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,16 +372,42 @@
372372
font-size: 10px !important;
373373
float: right;
374374
padding: 3px 8px !important;
375+
margin-left: 3px;
376+
margin-top: 2px;
375377
}
376378
377379
.popup-button {
378380
font-size: 10px !important;
379381
float: right;
382+
margin-top: 2px;
380383
padding: 3px 8px !important;
381-
margin-right: 4px;
382384
}
383385
384386
.morph {
385387
display: inline-block;
386388
}
389+
390+
/* Bootstrap extra small(xs) responsive breakpoint */
391+
@media (max-width: 575.98px) {
392+
393+
.header-wrapper {
394+
width: 88%;
395+
}
396+
397+
.button-wrapper {
398+
width: 12%;
399+
}
400+
401+
.card-body {
402+
padding: 0.5rem;
403+
}
404+
405+
.card-collapse > hr {
406+
margin-top: 1.5rem;
407+
}
408+
409+
.card-header {
410+
padding: 0.5rem;
411+
}
412+
}
387413
</style>

src/PanelSwitch.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
float: right;
4545
padding: 3px 8px !important;
4646
margin-left: 3px;
47+
margin-top: 2px;
4748
}
4849
</style>

0 commit comments

Comments
 (0)