UX: chat header size and alignments (#25239)
This commit: - increased the size of chat-header-offset from 46px to 56px on mobile - tweaked navbar padding - Increased the gap between back button and title; this means no more perfect alignment, but I think that's perfectly fine and a fair trade off for an easier click target for the back button without fear of hitting the title
This commit is contained in:
parent
bad14899e6
commit
b063d92ad1
|
@ -14,12 +14,6 @@
|
|||
z-index: z("composer", "content") - 1;
|
||||
padding-inline: 1rem;
|
||||
|
||||
.chat-drawer &,
|
||||
.c-routes-channel-thread &,
|
||||
.c-routes-channel-info & {
|
||||
padding-inline: 0;
|
||||
}
|
||||
|
||||
&.-clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
.c-navbar-container {
|
||||
.chat-drawer &,
|
||||
.c-routes-channel-thread &,
|
||||
.c-routes-channel-info & {
|
||||
padding-inline: 0;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
@import "base-desktop";
|
||||
@import "chat-navbar";
|
||||
@import "chat-composer-uploads";
|
||||
@import "chat-index-drawer";
|
||||
@import "chat-index-full-page";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
:root {
|
||||
--channel-list-avatar-size: 38px;
|
||||
--chat-header-offset: 56px;
|
||||
}
|
||||
|
||||
.chat-message-container:not(.-user-info-hidden) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
.back-to-forum {
|
||||
color: var(--primary);
|
||||
font-size: var(--font-up-1);
|
||||
padding: 0.5rem 0.8rem;
|
||||
padding: 0.5rem 0.8rem 0.5rem 0.25rem;
|
||||
|
||||
.d-icon {
|
||||
color: var(--primary);
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
.c-navbar {
|
||||
gap: 0.75rem;
|
||||
&-container {
|
||||
max-width: 100vw;
|
||||
padding-inline: 0.25rem;
|
||||
}
|
||||
|
||||
&__back-button {
|
||||
align-self: stretch;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue