Skip to content

A platform for community discussion. Free, open, simple.

UX: improve progress styling on mobile (#34886)

chapoib932446a56b9
diff --git a/app/assets/stylesheets/common/base/topic-footer.scss b/app/assets/stylesheets/common/base/topic-footer.scss
index 9e7e3166963..2b78db08aa3 100644
--- a/app/assets/stylesheets/common/base/topic-footer.scss
+++ b/app/assets/stylesheets/common/base/topic-footer.scss
@@ -116,6 +116,28 @@
}
}
+.container.posts .topic-navigation {
+ @include viewport.until(lg) {
+ display: flex;
+ justify-content: flex-end;
+ align-items: center;
+ grid-area: posts;
+ grid-row: 3;
+ width: auto;
+
+ .btn-toggle-localized-content,
+ .topic-admin-menu-trigger {
+ border-radius: 0;
+ background: var(--secondary);
+ border: 1px solid var(--primary-low);
+ }
+
+ .btn-toggle-localized-content {
+ height: 100%;
+ }
+ }
+}
+
#topic-progress-wrapper {
display: flex;
justify-content: flex-end;
@@ -127,7 +149,7 @@
}
}
- .btn {
+ .btn.progress-back {
border: 0;
}
@@ -144,8 +166,10 @@
.nums {
display: flex;
gap: 0.3rem;
+ justify-content: center;
align-items: center;
height: 100%;
+ min-width: 6ch;
position: relative;
z-index: z("base");
font-size: var(--font-up-1);
diff --git a/app/assets/stylesheets/common/base/topic.scss b/app/assets/stylesheets/common/base/topic.scss
index 72f147ad1f8..f9660f4f9ea 100644
--- a/app/assets/stylesheets/common/base/topic.scss
+++ b/app/assets/stylesheets/common/base/topic.scss
@@ -88,19 +88,6 @@
grid-template-areas: "posts";
grid-template-columns: auto;
- .topic-navigation {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- grid-area: posts;
- grid-row: 3;
- width: auto;
-
- .btn-toggle-localized-content {
- height: 100%;
- }
- }
-
.timeline-container:not(.timeline-fullscreen) {
display: none; // hiding this because sometimes the JS switch lags and causes layout issues
}