Skip to content

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

UX: increase chat avatar & icon sizing in sidebar (#33468)

chapoi51d7c8c0475a
diff --git a/app/assets/stylesheets/common/base/sidebar-section-link.scss b/app/assets/stylesheets/common/base/sidebar-section-link.scss
index 95ffd05eb75..88f7e43fc4d 100644
--- a/app/assets/stylesheets/common/base/sidebar-section-link.scss
+++ b/app/assets/stylesheets/common/base/sidebar-section-link.scss
@@ -1,8 +1,10 @@
+@use "lib/viewport";
+
:root {
--d-sidebar-section-link-prefix-margin-right: 0.75em;
- --d-sidebar-section-link-prefix-width: 1.35rem;
- --d-sidebar-section-link-icon-size: 0.8em;
- --d-sidebar-section-link-emoji-size: 0.9em;
+ --d-sidebar-section-link-prefix-width: 1.75rem;
+ --d-sidebar-section-link-icon-size: 1em;
+ --d-sidebar-section-link-emoji-size: 1em;
}
.sidebar-section-link-wrapper {
@@ -170,6 +172,14 @@
height: var(--d-sidebar-section-link-prefix-width);
margin-right: var(--d-sidebar-section-link-prefix-margin-right);
+ #sidebar-section-content-chat-dms & {
+ @include viewport.from(sm) {
+ .prefix-text {
+ font-size: var(--font-0);
+ }
+ }
+ }
+
.prefix-image {
border: 1px solid transparent;
}