Skip to content

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

DEV: move mobile user-stream-item css into common (#38977)

Kris369a5c60af86
diff --git a/app/assets/stylesheets/common/components/user-stream-item.scss b/app/assets/stylesheets/common/components/user-stream-item.scss
index ff5e01e21f5..c58dea61a69 100644
--- a/app/assets/stylesheets/common/components/user-stream-item.scss
+++ b/app/assets/stylesheets/common/components/user-stream-item.scss
@@ -1,4 +1,5 @@
-// Common styles for "user-stream-item" component
+@use "lib/viewport";
+
.user-stream {
// DEPRECATED:
// The ".item" class should be removed because it's too generic.
@@ -164,6 +165,10 @@
max-width: 400px;
@include ellipsis;
+
+ @include viewport.until(sm) {
+ vertical-align: middle;
+ }
}
.edit-reason {
@@ -196,6 +201,12 @@
.group-member-info {
display: flex;
+
+ @include viewport.until(sm) {
+ .name {
+ vertical-align: inherit;
+ }
+ }
}
.user-stream-item .user-stream-item-draft-actions {
diff --git a/app/assets/stylesheets/mobile/components/_index.scss b/app/assets/stylesheets/mobile/components/_index.scss
index d579427f918..11b3a3976a5 100644
--- a/app/assets/stylesheets/mobile/components/_index.scss
+++ b/app/assets/stylesheets/mobile/components/_index.scss
@@ -1,4 +1,3 @@
@import "user-card";
-@import "user-stream-item";
@import "more-topics";
@import "emoji-picker";
diff --git a/app/assets/stylesheets/mobile/components/user-stream-item.scss b/app/assets/stylesheets/mobile/components/user-stream-item.scss
deleted file mode 100644
index 7a941286971..00000000000
--- a/app/assets/stylesheets/mobile/components/user-stream-item.scss
+++ /dev/null
@@ -1,12 +0,0 @@
-// Mobile styles for "user-stream-item" component
-.user-stream {
- .name {
- vertical-align: middle;
- }
-
- .group-member-info {
- .name {
- vertical-align: inherit;
- }
- }
-}