Skip to content

Commit

Permalink
Code: nr format
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Sep 5, 2024
1 parent cdbc392 commit 15aab28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions frontend/app/routes/users.$handle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
EyeRegular,
EyeOffRegular,
EyeRegular,
MusicNote2Regular,
OpenRegular,
PersonFilled,
Expand Down Expand Up @@ -138,7 +138,10 @@ const UserPage = () => {

{secretUserInfo && (
<div className="text-md mt-4 card flex flex-col">
<button onClick={() => setShowSecretUserInfo(!showSecretUserInfo)} className="font-bold text-left">
<button
onClick={() => setShowSecretUserInfo(!showSecretUserInfo)}
className="font-bold text-left"
>
{showSecretUserInfo ? (
<EyeOffRegular className="mr-1 w-6 h-6" />
) : (
Expand Down
6 changes: 3 additions & 3 deletions frontend/components/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const SideMenu: React.FC<{ close: () => void }> = ({ close }) => {
onClick={close}
>
<div
className="absolute right-2 top-2 min-w-64 h-[calc(100svh_-_16px)] bg-white dark:bg-slate-900 shadow-lg rounded-lg p-4 flex flex-col overflow-y-auto"
className="absolute right-2 top-2 min-w-64 h-[calc(100svh_-_16px)] bg-background shadow-lg rounded-lg p-4 flex flex-col overflow-y-auto"
onClick={(e) => e.stopPropagation()}
>
{session?.loggedIn ? (
Expand Down Expand Up @@ -119,7 +119,7 @@ const SideMenu: React.FC<{ close: () => void }> = ({ close }) => {
<div className="text-2xl">{t("login.button")}</div>
</div>
)}
<div className="w-full h-[1px] my-2 bg-slate-200 dark:bg-slate-700" />
<div className="w-full h-[1px] my-2 bg-slate-200 dark:bg-slate-500" />
<div className="flex flex-col flex-grow">
{[
{
Expand Down Expand Up @@ -234,7 +234,7 @@ const SideMenu: React.FC<{ close: () => void }> = ({ close }) => {
case "line":
return (
<div
className="w-full h-[1px] my-2 bg-slate-100 dark:bg-slate-800"
className="w-full h-[1px] my-2 bg-slate-100 dark:bg-slate-700"
key={i}
/>
);
Expand Down

0 comments on commit 15aab28

Please sign in to comment.