Skip to content

Commit

Permalink
Shoutbox recolor
Browse files Browse the repository at this point in the history
  • Loading branch information
ebetoi committed Oct 31, 2024
1 parent 78b665c commit 61a875d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion components/ShoutBox/messageformatter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const MessageFormatter = ({
</div>
{isAdmin && name !== 'Toimitus' && name !== 'Palvelin' && !telegram && (
<button
className="m-1 inline-block cursor-pointer select-none rounded border-[1px] border-white bg-transparent px-3 py-1.5 text-center align-middle text-base font-bold text-radio-accent"
className="m-1 inline-block cursor-pointer select-none rounded border-[1px] border-white px-3 py-1.5 text-center align-middle text-base font-bold text-radio-accent"
onClick={() => onBanClick(name)}
>
Bännää
Expand Down
4 changes: 2 additions & 2 deletions components/ShoutBox/nameinput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const NameInput = ({ onSubmitName }: NameInputProps) => {
onSubmitName(name);
setName('');
}}
className=" px[10px] flex h-full flex-row"
className=" px[10px] flex h-full flex-row bg-radio-bg"
>
<TextField
label={''}
Expand All @@ -40,7 +40,7 @@ const NameInput = ({ onSubmitName }: NameInputProps) => {
<button
type="submit"
value="Send"
className="sbSubmitButton inline-block cursor-pointer select-none rounded border-[3px] border-white bg-transparent px-3 py-1.5 text-center align-middle text-base font-bold text-white disabled:opacity-50"
className="sbSubmitButton inline-block cursor-pointer select-none rounded border-[3px] border-white bg-radio-bg px-3 py-1.5 text-center align-middle text-base font-bold text-white disabled:opacity-50"
disabled={isButtonDisabled(name)}
>
OK
Expand Down
10 changes: 5 additions & 5 deletions components/ShoutBox/shoutbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ const Chat = ({ limit, isOpen }: ShoutBoxProps) => {
}

return (
<div className="mx-auto flex h-96 w-full max-w-6xl px-[25px] py-6 md:h-[38rem] ">
<div className="mx-auto my-0 h-auto w-full flex-wrap overflow-auto overflow-x-hidden shadow-md">
<div className="mx-auto flex h-96 w-full max-w-6xl px-[25px] py-6 md:h-[38rem]">
<div className="mx-auto my-0 h-auto w-full flex-wrap overflow-auto overflow-x-hidden bg-radio-bg shadow-md">
<div
className="flex h-[81%] flex-col-reverse overflow-y-auto overflow-x-hidden px-0 py-2 text-white md:h-[85%]"
className="flex h-[81%] flex-col-reverse overflow-y-auto overflow-x-hidden px-0 py-2 text-white md:h-[85%] shadow-md"
ref={messagesViewport}
>
{messages.map((message, index) => (
Expand All @@ -156,7 +156,7 @@ const Chat = ({ limit, isOpen }: ShoutBoxProps) => {
name={message.name}
timestamp={message.timestamp}
color={
index % 2 === 0 ? 'bg-radio-common' : 'bg-radio-controller'
index % 2 === 0 ? 'bg-radio-bg' : 'bg-radio-bg200'
}
isAdmin={isAdmin}
onBanClick={handleBanClick}
Expand All @@ -169,7 +169,7 @@ const Chat = ({ limit, isOpen }: ShoutBoxProps) => {
</div>
)}
</div>
<div className="h-[4rem] w-full">
<div className="h-[4rem] w-full, bg-radio-bg">
{name ? (
<MessageInput
name={isAdmin ? 'Toimitus' : name}
Expand Down
2 changes: 1 addition & 1 deletion components/ShoutBox/textfield.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const TextField = ({
<div className="TextFieldArea mr-[16px] inline-flex w-full justify-around">
{label}
<input
className="TextField w-full rounded-none border-b-2 border-solid border-radio-controller bg-transparent text-white"
className="TextField w-full rounded-none border-b-2 border-solid border-radio-controller bg-radio-bg text-white"
type={type || 'text'}
placeholder={placeholder}
value={value}
Expand Down

0 comments on commit 61a875d

Please sign in to comment.