Compare commits
No commits in common. "bbbb800524bd834179fe2c12ee516d0df04905cf" and "06cb26633d4096f6f52c237213db3e4a28479bf8" have entirely different histories.
bbbb800524
...
06cb26633d
|
@ -2,9 +2,7 @@
|
|||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "Capability for the main window",
|
||||
"windows": [
|
||||
"main"
|
||||
],
|
||||
"windows": ["main"],
|
||||
"permissions": [
|
||||
"path:default",
|
||||
"event:default",
|
||||
|
@ -14,7 +12,6 @@
|
|||
"resources:default",
|
||||
"menu:default",
|
||||
"tray:default",
|
||||
"shell:allow-open",
|
||||
"window:allow-start-dragging"
|
||||
"shell:allow-open"
|
||||
]
|
||||
}
|
|
@ -13,13 +13,7 @@
|
|||
{
|
||||
"title": "BugWork",
|
||||
"width": 1200,
|
||||
"height": 800,
|
||||
"minWidth": 1200,
|
||||
"minHeight": 800,
|
||||
"titleBarStyle": "Overlay",
|
||||
"decorations": true,
|
||||
"hiddenTitle": true,
|
||||
"transparent": false
|
||||
"height": 800
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
import { css } from "@emotion/react";
|
||||
import styled from "@emotion/styled";
|
||||
|
||||
const Handler = styled.div(({ theme }) =>
|
||||
css({
|
||||
position: "fixed",
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
height: theme.spacings.xxs * 24,
|
||||
zIndex: 1,
|
||||
})
|
||||
);
|
||||
|
||||
export function WindowMoveHandler() {
|
||||
return <Handler data-tauri-drag-region />;
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
export { WindowMoveHandler } from "./WindowMoveHandler/WindowMoveHandler";
|
|
@ -13,7 +13,6 @@ export const globalStyle = (theme) =>
|
|||
MozOsxFontSmoothing: "grayscale",
|
||||
WebkitTextSizeAdjust: "100%",
|
||||
backgroundColor: theme.backgroundColor.light,
|
||||
overflow: "hidden",
|
||||
[mq.dark]: {
|
||||
backgroundColor: theme.backgroundColor.dark,
|
||||
},
|
||||
|
|
|
@ -1,22 +1,3 @@
|
|||
import { WindowMoveHandler } from "@/components";
|
||||
import { flex } from "@/style-predefines";
|
||||
import { css } from "@emotion/react";
|
||||
import styled from "@emotion/styled";
|
||||
|
||||
const LayoutContainer = styled.div(({ theme }) =>
|
||||
css({
|
||||
height: "100vh",
|
||||
width: "100vw",
|
||||
paddingTop: theme.spacings.xxs * 24,
|
||||
...flex(theme, "row", "flex-start", "stretch"),
|
||||
overflow: "hidden",
|
||||
})
|
||||
);
|
||||
|
||||
export function MainLayout() {
|
||||
return (
|
||||
<LayoutContainer>
|
||||
<WindowMoveHandler />
|
||||
</LayoutContainer>
|
||||
);
|
||||
return <div></div>;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user