Skip to content

Commit

Permalink
Remove border
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Nov 18, 2023
1 parent cd26478 commit c3b181f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 25 deletions.
4 changes: 3 additions & 1 deletion apps/desktop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>overlayed</title>
<link rel="stylesheet" href="/src/styles.css" />

</head>

<body style="padding: 0 4px 0 0">
<body style="padding: 0 4px 0 0" class="overflow-hidden">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
10 changes: 8 additions & 2 deletions apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ fn set_clickthrough(value: bool, window: &Window, clickthrough: State<'_, Clickt
// invert the label for the tray
let tray_handle = window.app_handle().tray_handle();
let enable_or_disable = if value { "Disable" } else { "Enable" };
tray_handle.get_item(TRAY_TOGGLE_CLICKTHROUGH).set_title(format!("{} Clickthrough", enable_or_disable));
tray_handle
.get_item(TRAY_TOGGLE_CLICKTHROUGH)
.set_title(format!("{} Clickthrough", enable_or_disable));

#[cfg(target_os = "macos")]
window.with_webview(move |webview| {
Expand Down Expand Up @@ -165,7 +167,11 @@ fn main() {
},
_ => {}
})
.invoke_handler(generate_handler![toggle_clickthrough, get_clickthrough, open_devtools])
.invoke_handler(generate_handler![
toggle_clickthrough,
get_clickthrough,
open_devtools
])
.build(tauri::generate_context!())
.expect("An error occured while running the app!");

Expand Down
6 changes: 2 additions & 4 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ import { useDisableContextMenu } from "./use-disable-context-menu";
function App() {
useSocket();
useDisableContextMenu();

const { clickthrough } = useClickthrough();

return (
<div
className={`text-white h-screen select-none rounded-lg bg-zinc-900}`}
>
<div className={`text-white h-screen select-none rounded-lg bg-zinc-900}`}>
<NavBar clickthrough={clickthrough} />
<Routes>
<Route path="/" Component={Main} />
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./styles.css";
import { HashRouter } from "react-router-dom";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
Expand Down
1 change: 0 additions & 1 deletion apps/desktop/src/rpc/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ class SocketManager {
this.store.setUsers(payload.data.voice_states);

// set the current channel
console.log(payload.data)
this.store.setCurrentChannel(payload.data);
}
}
Expand Down
16 changes: 0 additions & 16 deletions apps/desktop/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
@tailwind base;
@tailwind utilities;

html {
height: calc(100vh - 2px);
border: 2px solid transparent;
border-radius: 8px 8px 0 0;
}

html:hover {
border-color: blueviolet;
}

body {
position: fixed;
width: 100%;
height: 100%;
overflow: hidden;
}

0 comments on commit c3b181f

Please sign in to comment.