Skip to content

Commit

Permalink
Make border better lookin
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 5, 2023
1 parent 2e0621e commit 44e3007
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/components/nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ export const NavBar = ({ clickthrough }: { clickthrough: boolean }) => {
}
}, [location.pathname]);

if (clickthrough && location.pathname === "/channel") return null;
const opacity =
clickthrough && location.pathname === "/channel"
? "opacity-0"
: "opacity-100";

return (
<div
data-tauri-drag-region
className="cursor-default rounded-t-lg font-bold select-none p-2 hover:bg-zinc-800 bg-zinc-900"
className={`${opacity} cursor-default rounded-t-lg font-bold select-none p-2 hover:bg-zinc-800 bg-zinc-900`}
>
overlayed
<div className="float-right flex items-center gap-2">
Expand Down
4 changes: 2 additions & 2 deletions src/components/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export const User = ({ item }: { item: OverlayedUser }) => {
? `https://cdn.discordapp.com/avatars/${id}/${avatarHash}.jpg`
: "./img/default.png";

const talkingClass = talking ? "border-green-500" : "border-slate-900";
const talkingClass = talking ? "border-green-500" : "border-zinc-800";
const mutedClass = selfMuted ? "text-zinc-400" : "";

return (
<div data-tauri-drag-region className="flex py-1 p-2 items-center">
<div
className={`pointer-events-none rounded-full bg-black w-8 h-8 border-2 mr-2 ${talkingClass}`}
className={`pointer-events-none rounded-full w-8 h-8 border-2 mr-2 ${talkingClass}`}
>
<img src={avatarUrl} alt="avatar" className="rounded-full" />
</div>
Expand Down
1 change: 0 additions & 1 deletion src/rpc/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ class SocketManager {
}

if (payload.evt === RPCEvent.VOICE_STATE_UPDATE) {
console.log("update user", payload.data);
this.store.updateUser(payload.data);

await invalidateWindowShadows();
Expand Down

0 comments on commit 44e3007

Please sign in to comment.