Skip to content

Commit

Permalink
Add border and format
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Sep 17, 2024
1 parent 5f92cff commit e302af2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/bot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
CANARY,
HELP,
INFO,
INVITE,
INVITE,
} from "./commands.js";
import { Bindings } from "./types.js";
import { verifyDiscordRequest } from "./utils.js";
Expand Down
9 changes: 7 additions & 2 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useAppStore } from "./store";
import { Toaster } from "./components/ui/toaster";
import { useEffect } from "react";
import { useSocket } from "./rpc/manager";
import { cn } from "./utils/tw";

function App() {
useDisableWebFeatures();
Expand All @@ -28,11 +29,15 @@ function App() {

const { pin } = usePin();
const { horizontal, setHorizontalDirection } = useAlign();

const visibleClass = visible ? "opacity-100" : "opacity-0";

return (
<div className={`text-white h-screen select-none rounded-lg ${visibleClass}`}>
<div
className={cn(
`text-white h-screen select-none rounded-lg ${visibleClass}`,
pin ? null : "border border-zinc-600"
)}
>
{!pin && (
<NavBar
isUpdateAvailable={update?.available ?? false}
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// shim some stuff
import 'core-js/actual/promise';
import "core-js/actual/promise";

import React from "react";
import ReactDOM from "react-dom/client";
Expand Down

0 comments on commit e302af2

Please sign in to comment.