feat: github action added

This commit is contained in:
2026-04-24 20:48:14 +02:00
parent 99748f56e8
commit 7262236b7d

View File

@ -1,8 +1,17 @@
import { getCurrentWindow } from "@tauri-apps/api/window"; import { getCurrentWindow } from "@tauri-apps/api/window";
import type { ResizeDirection } from "@tauri-apps/api/window";
const S = 8; // grab zone size in px const S = 8; // grab zone size in px
type ResizeDirection =
| "North"
| "East"
| "South"
| "West"
| "NorthEast"
| "SouthEast"
| "SouthWest"
| "NorthWest";
const handles: { edge: ResizeDirection; style: React.CSSProperties }[] = [ const handles: { edge: ResizeDirection; style: React.CSSProperties }[] = [
{ edge: "North", style: { top: 0, left: S, right: S, height: S, cursor: "n-resize" } }, { edge: "North", style: { top: 0, left: S, right: S, height: S, cursor: "n-resize" } },
{ edge: "South", style: { bottom: 0, left: S, right: S, height: S, cursor: "s-resize" } }, { edge: "South", style: { bottom: 0, left: S, right: S, height: S, cursor: "s-resize" } },