clip x overflow
All checks were successful
build / windows (push) Successful in 2m25s
build / linux (push) Successful in 4m19s

This commit is contained in:
schreifuchs 2025-03-10 09:12:27 +01:00
parent 7bae1918c4
commit d2164622c4
4 changed files with 42 additions and 10 deletions

View File

@ -1,12 +1,15 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport"/> <meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>wails-svelte-tailwind-ts</title> <title>wails-svelte-tailwind-ts</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script src="./src/main.ts" type="module"></script> <script src="./src/main.ts" type="module"></script>
</body> </body>
</html> </html>

View File

@ -26,7 +26,9 @@
</button> </button>
<DarkMode /> <DarkMode />
</Navbar> </Navbar>
<main class="size-full max-h-full max-w-full overflow-scroll"> <main
class="size-full max-h-full max-w-full overflow-y-scroll overflow-x-clip"
>
<Route path="/"><Things /></Route> <Route path="/"><Things /></Route>
<Route path="/things/:id" let:params> <Route path="/things/:id" let:params>
<Thing thingID={parseInt(params.id)} /> <Thing thingID={parseInt(params.id)} />

View File

@ -14,7 +14,24 @@
*/ */
"allowJs": true, "allowJs": true,
"checkJs": true, "checkJs": true,
"isolatedModules": true "isolatedModules": true,
"paths": {
"@/*": [
"src/*"
],
"@assets/*": [
"src/assets/*"
],
"@components/*": [
"src/components/*"
],
"@routes/*": [
"src/routes/*"
],
"@wails/*": [
"src/wailsjs/*"
]
}
}, },
"include": [ "include": [
"src/**/*.d.ts", "src/**/*.d.ts",

View File

@ -1,7 +1,17 @@
import {defineConfig} from 'vite' import { defineConfig } from 'vite'
import {svelte} from '@sveltejs/vite-plugin-svelte' import { svelte } from '@sveltejs/vite-plugin-svelte'
import path from 'path';
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [svelte()] plugins: [svelte()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@assets': path.resolve(__dirname, './src/assets'),
'@components': path.resolve(__dirname, './src/components'),
'@routes': path.resolve(__dirname, './src/routes'),
'@wails': path.resolve(__dirname, './src/wailsjs'),
},
},
}) })