Compare commits

..

No commits in common. "fd8aa70ee2f9a5e2a659b55ece0f3d821ce4ae3c" and "f4d499b5b82c217c28dace2229468e282736592a" have entirely different histories.

3 changed files with 3 additions and 21 deletions

View file

@ -53,26 +53,10 @@
height: 40px; height: 40px;
} }
.message:hover { .message:hover, .message.pinged {
background-color: var(--background-color-3); background-color: var(--background-color-3);
} }
.message.pinged {
background-color: var(--purple-2-highlight);
}
.message.pinged::before {
content: "";
display: block;
position: absolute;
width: 3px;
border-radius: 2px;
top: 0;
left: 0;
bottom: 0;
background-color: var(--purple-2);
}
.message-content { .message-content {
color: var(--foreground-color-2); color: var(--foreground-color-2);
white-space: pre-wrap; white-space: pre-wrap;

View file

@ -98,9 +98,9 @@
const sendMessage = async () => { const sendMessage = async () => {
messageTextarea.focus(); messageTextarea.focus();
const content = messageInput.trim(); const content = messageInput;
if (!content.length || !userInfoStore.value) if (content.trim() === "" || !userInfoStore.value)
return; return;
// optimistically add message to store // optimistically add message to store

View file

@ -66,8 +66,6 @@
--yellow-2: hsl(50, 78%, 60%); --yellow-2: hsl(50, 78%, 60%);
--red-2: hsl(2, 78%, 60%); --red-2: hsl(2, 78%, 60%);
--purple-2-highlight: hsla(266, 62%, 58%, 0.1);
--space-unit: 1em; --space-unit: 1em;
--space-xxs: calc(0.25 * var(--space-unit)); --space-xxs: calc(0.25 * var(--space-unit));