Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix z indexing

Brendan Allan976aa17d3c65
diff --git a/apps/desktop/src/components/titlebar/Titlebar.tsx b/apps/desktop/src/components/titlebar/Titlebar.tsx
index 7f40448e5..1f4353e07 100644
--- a/apps/desktop/src/components/titlebar/Titlebar.tsx
+++ b/apps/desktop/src/components/titlebar/Titlebar.tsx
@@ -14,13 +14,12 @@ export default function Titlebar() {
return (
<header
class={cx(
- "flex flex-row items-center select-none space-x-1 shrink-0 border-gray-200 rounded-[inherit]",
+ "flex flex-row items-center z-50 select-none space-x-1 shrink-0 border-gray-200",
titlebarState.transparent ? "" : "bg-gray-50",
titlebarState.border ? "border-b" : ""
)}
style={{
height: titlebarState.height,
- "z-index": "999999",
}}
data-tauri-drag-region
>
diff --git a/apps/desktop/src/routes/(window-chrome)/setup.tsx b/apps/desktop/src/routes/(window-chrome)/setup.tsx
index 54a6fb967..4e5001930 100644
--- a/apps/desktop/src/routes/(window-chrome)/setup.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/setup.tsx
@@ -156,6 +156,7 @@ import { generalSettingsStore } from "~/store";
import { Portal } from "solid-js/web";
import { cx } from "cva";
import { type as ostype } from "@tauri-apps/plugin-os";
+import Titlebar from "~/components/titlebar/Titlebar";
function Startup(props: { onClose: () => void }) {
const [audioState, setAudioState] = makePersisted(
@@ -286,7 +287,7 @@ function Startup(props: { onClose: () => void }) {
return (
<Portal>
- <div class="absolute inset-0 z-50">
+ <div class="absolute inset-0 z-40">
<style>
{`
body {