feat: support drag and remove title bar on KDE

This commit is contained in:
Kevin Yue authored and Kevin Yue committed 2023-06-25 13:46:35 +08:00
1 parent 5bc3da99ac
commit 4191e9a19f
8 files changed
+36 -9

No files matched your search

+7 -2
View File
@@ -3,10 +3,15 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
<title>Vite + React + TS</title>
</head>
<body>
<body data-tauri-drag-region>
<script>
var htmlFontSize = getComputedStyle(document.documentElement).fontSize;
var ratio = parseInt(htmlFontSize) / 16;
document.documentElement.style.fontSize = (16 / ratio) + 'px';
</script>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>