feat: github action added
This commit is contained in:
@ -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" } },
|
||||||
|
|||||||
Reference in New Issue
Block a user