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:
chapoi 2024-01-12 15:27:44 +02:00 committed by GitHub
parent bad14899e6
commit b063d92ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 7 deletions

View File

@ -14,12 +14,6 @@
z-index: z("composer", "content") - 1; z-index: z("composer", "content") - 1;
padding-inline: 1rem; padding-inline: 1rem;
.chat-drawer &,
.c-routes-channel-thread &,
.c-routes-channel-info & {
padding-inline: 0;
}
&.-clickable { &.-clickable {
cursor: pointer; cursor: pointer;
} }

View File

@ -0,0 +1,7 @@
.c-navbar-container {
.chat-drawer &,
.c-routes-channel-thread &,
.c-routes-channel-info & {
padding-inline: 0;
}
}

View File

@ -1,4 +1,5 @@
@import "base-desktop"; @import "base-desktop";
@import "chat-navbar";
@import "chat-composer-uploads"; @import "chat-composer-uploads";
@import "chat-index-drawer"; @import "chat-index-drawer";
@import "chat-index-full-page"; @import "chat-index-full-page";

View File

@ -1,5 +1,6 @@
:root { :root {
--channel-list-avatar-size: 38px; --channel-list-avatar-size: 38px;
--chat-header-offset: 56px;
} }
.chat-message-container:not(.-user-info-hidden) { .chat-message-container:not(.-user-info-hidden) {

View File

@ -16,7 +16,7 @@
.back-to-forum { .back-to-forum {
color: var(--primary); color: var(--primary);
font-size: var(--font-up-1); font-size: var(--font-up-1);
padding: 0.5rem 0.8rem; padding: 0.5rem 0.8rem 0.5rem 0.25rem;
.d-icon { .d-icon {
color: var(--primary); color: var(--primary);

View File

@ -1,6 +1,11 @@
.c-navbar { .c-navbar {
gap: 0.75rem;
&-container { &-container {
max-width: 100vw; max-width: 100vw;
padding-inline: 0.25rem; padding-inline: 0.25rem;
} }
&__back-button {
align-self: stretch;
}
} }