mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 15:16:09 -05:00
Fix SendouQ chat buttons styling
This commit is contained in:
@@ -4,6 +4,7 @@ import { sub } from "date-fns";
|
||||
import { nanoid } from "nanoid";
|
||||
import { WebSocket } from "partysocket";
|
||||
import * as React from "react";
|
||||
import { Button } from "react-aria-components";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import type { Tables } from "~/db/tables";
|
||||
import { useUser } from "~/features/auth/core/user";
|
||||
@@ -136,12 +137,11 @@ export function Chat({
|
||||
const unseen = unseenMessages.get(room.code);
|
||||
|
||||
return (
|
||||
<SendouButton
|
||||
<Button
|
||||
key={room.code}
|
||||
className={clsx("chat__room-button", {
|
||||
current: currentRoom === room.code,
|
||||
})}
|
||||
size="small"
|
||||
onPress={() => {
|
||||
setCurrentRoom(room.code);
|
||||
resetScroller();
|
||||
@@ -154,7 +154,7 @@ export function Chat({
|
||||
) : (
|
||||
<span className="chat__room-button__unseen invisible" />
|
||||
)}
|
||||
</SendouButton>
|
||||
</Button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -1138,12 +1138,20 @@ html[dir="rtl"] .fix-rtl {
|
||||
}
|
||||
|
||||
.chat__room-button {
|
||||
background-color: var(--bg-light);
|
||||
background-color: transparent;
|
||||
color: var(--text-lighter);
|
||||
border-radius: var(--rounded) var(--rounded) 0 0;
|
||||
font-size: var(--fonts-xs);
|
||||
padding: var(--s-1) var(--s-1);
|
||||
border-color: var(--bg-light-variation);
|
||||
font-size: var(--fonts-xs);
|
||||
padding-block: var(--s-1);
|
||||
padding-inline: var(--s-2);
|
||||
display: flex;
|
||||
width: auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: var(--bold);
|
||||
flex: 1 1 0px;
|
||||
}
|
||||
|
||||
.chat__room-button.current {
|
||||
|
||||
Reference in New Issue
Block a user