Compare commits
No commits in common. "fd8aa70ee2f9a5e2a659b55ece0f3d821ce4ae3c" and "f4d499b5b82c217c28dace2229468e282736592a" have entirely different histories.
fd8aa70ee2
...
f4d499b5b8
3 changed files with 3 additions and 21 deletions
|
@ -53,26 +53,10 @@
|
|||
height: 40px;
|
||||
}
|
||||
|
||||
.message:hover {
|
||||
.message:hover, .message.pinged {
|
||||
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 {
|
||||
color: var(--foreground-color-2);
|
||||
white-space: pre-wrap;
|
||||
|
|
|
@ -98,9 +98,9 @@
|
|||
|
||||
const sendMessage = async () => {
|
||||
messageTextarea.focus();
|
||||
const content = messageInput.trim();
|
||||
const content = messageInput;
|
||||
|
||||
if (!content.length || !userInfoStore.value)
|
||||
if (content.trim() === "" || !userInfoStore.value)
|
||||
return;
|
||||
|
||||
// optimistically add message to store
|
||||
|
|
|
@ -66,8 +66,6 @@
|
|||
--yellow-2: hsl(50, 78%, 60%);
|
||||
--red-2: hsl(2, 78%, 60%);
|
||||
|
||||
--purple-2-highlight: hsla(266, 62%, 58%, 0.1);
|
||||
|
||||
|
||||
--space-unit: 1em;
|
||||
--space-xxs: calc(0.25 * var(--space-unit));
|
||||
|
|
Loading…
Reference in a new issue