Skip to content

Commit 6674933

Browse files
committed
fix(ui): padding on small screens
1 parent b9c4dc1 commit 6674933

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

crates/rostra-web-ui/assets/style.css

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ img.u-userImage[loading="lazy"][src][width][height] {
329329

330330
/* Loading spinner for buttons */
331331
@keyframes u-spin {
332-
to { transform: rotate(360deg); }
332+
to {
333+
transform: rotate(360deg);
334+
}
333335
}
334336

335337
.u-button.-loading {
@@ -519,12 +521,8 @@ img.u-userImage[loading="lazy"][src][width][height] {
519521
display: none;
520522
}
521523

522-
@media (min-width: 768px
523-
/* var's dont work here */
524-
) {
525-
.o-mainBarTimeline__item {
526-
padding: 1rem 1.5rem;
527-
}
524+
.o-mainBarTimeline__item {
525+
padding: clamp(0.1rem, 1vw, 1rem) clamp(0.1rem, 1.5vw, 1.5rem)
528526
}
529527

530528
.o-mainBarTimeline__item {
@@ -813,10 +811,11 @@ emoji-picker {
813811
display: flex;
814812
justify-content: space-between;
815813
gap: 5pt;
816-
margin-bottom: 1rem;
814+
margin-bottom: 0.5rem;
815+
margin-right: 1rem;
816+
margin-top: 0.5rem;
817817
}
818818

819-
820819
.m-postView__reactions {
821820
display: flex;
822821
gap: .5rem;
@@ -2273,6 +2272,7 @@ input:checked+.slider:before {
22732272
opacity: 0;
22742273
transform: translateY(10px);
22752274
}
2275+
22762276
to {
22772277
opacity: 1;
22782278
transform: translateY(0);
@@ -2376,7 +2376,8 @@ input:checked+.slider:before {
23762376
}
23772377

23782378
.o-welcomePage__button {
2379-
background-image: none; /* Remove link underline animation */
2379+
background-image: none;
2380+
/* Remove link underline animation */
23802381
}
23812382

23822383
.o-welcomePage__footer {
@@ -2519,4 +2520,4 @@ input:checked+.slider:before {
25192520

25202521
.m-inlineReply__preview.-active .m-postView {
25212522
opacity: 0.6;
2522-
}
2523+
}

0 commit comments

Comments
 (0)