Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable30] style: decrease chat messages 'reading width' #13421

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/assets/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
*/

/** Messages list dimensions:
* - text max width: 1050px (70em recommended by W3C standard)
* - text max width: ~750px (80 characters per line is recommended by W3C standard)
* - avatar width: 32px (AVATAR.SIZE.SMALL) + 16px (paddings) = 48px
* - info width: 8ch(~68px) (timestamp) + 40px (checkmark with paddings) = ~108px
* - list max width: 48px (avatar width) + 1058px (text width with paddings) + ~108px (info width) = ~1214px
* - input max width: ~1214px (list max width) - 100px (send button) = ~1114px
*/
$messages-text-max-width: calc(70 * var(--default-font-size));
$messages-text-max-width: calc(50 * var(--default-font-size));
$messages-avatar-width: calc(32px + 4 * var(--default-grid-baseline));
$messages-info-width: calc(8ch + var(--clickable-area-small, 24px) + 4 * var(--default-grid-baseline));
$messages-list-max-width: calc($messages-avatar-width + $messages-text-max-width + 2 * var(--default-grid-baseline) + $messages-info-width);
Expand Down
Loading