detached a673124

fix(chat): improve font and spacing in chat messages

commit
a673124420d17d95394a861562cb220d9705b6f9
author
Kit · · 2025-07-03 20:57 UTC
parent
d472d9a
signature
SSH UnverifiedSHA256:H91DFuEG4jpk5edzLA4aUKkpv4zv9Q339ipRmkph6Tk The key is unknown
1 file · +10 -2
M src/lib/components/chat-room.svelte +10 -2
@@ -575,7 +575,9 @@ function handleLoginSuccess() {
575575 }}>
576576 <span class="nickname pointer-events-none">{message.user.nickname}:</span>
577577 </Tooltip>
578- <FormattedMessage {message} allowFormatting={true} />
578+ <span class="message-content">
579+ <FormattedMessage {message} allowFormatting={true} />
580+ </span>
579581 {/if}
580582 </div>
581583 {/each}
@@ -674,7 +676,7 @@ function handleLoginSuccess() {
674676 <style>
675677 .chat-area, .users-list {
676678 font-size: 1rem;
677- font-family: "Pixelated MS Sans Serif", Arial, Verdana, Tahoma, sans-serif;
679+ font-family: Arial, "Pixelated MS Sans Serif", Verdana, Tahoma, sans-serif;
678680 }
679681
680682 input:not(.styled-input) {
@@ -734,6 +736,12 @@ function handleLoginSuccess() {
734736 font-weight: bold;
735737 color: #2d31a6;
736738 cursor: help;
739+ flex-shrink: 0;
740+ }
741+
742+ .message-content {
743+ flex: 1;
744+ min-width: 0;
737745 }
738746
739747 .message .content {
@@ -575,7 +575,9 @@ function handleLoginSuccess() {
575 }}>575 }}>
576 <span class="nickname pointer-events-none">{message.user.nickname}:</span>576 <span class="nickname pointer-events-none">{message.user.nickname}:</span>
577 </Tooltip>577 </Tooltip>
578- <FormattedMessage {message} allowFormatting={true} />578+ <span class="message-content">
579+ <FormattedMessage {message} allowFormatting={true} />
580+ </span>
579 {/if}581 {/if}
580 </div>582 </div>
581 {/each}583 {/each}
@@ -674,7 +676,7 @@ function handleLoginSuccess() {
674 <style>676 <style>
675 .chat-area, .users-list {677 .chat-area, .users-list {
676 font-size: 1rem;678 font-size: 1rem;
677- font-family: "Pixelated MS Sans Serif", Arial, Verdana, Tahoma, sans-serif;679+ font-family: Arial, "Pixelated MS Sans Serif", Verdana, Tahoma, sans-serif;
678 }680 }
679 681
680 input:not(.styled-input) {682 input:not(.styled-input) {
@@ -734,6 +736,12 @@ function handleLoginSuccess() {
734 font-weight: bold;736 font-weight: bold;
735 color: #2d31a6;737 color: #2d31a6;
736 cursor: help;738 cursor: help;
739+ flex-shrink: 0;
740+ }
741+
742+ .message-content {
743+ flex: 1;
744+ min-width: 0;
737 }745 }
738 746
739 .message .content {747 .message .content {

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 3

Tags 8

↑↓ moveenter openesc close