Compare commits

...

3 Commits

Author SHA1 Message Date
5242650ccd Use relitive path for loading content (electron fix).
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
2026-02-28 19:01:39 +00:00
a80b266fc7 Increased border radius for modals. 2026-02-28 18:50:56 +00:00
4b82048d8e Fixed invoice client. 2026-02-28 18:31:01 +00:00
5 changed files with 13 additions and 8 deletions

View File

@ -407,3 +407,8 @@ body {
border-radius: 0 !important;
box-shadow: none !important;
}
.ant-modal .ant-modal-content {
border-radius: 22px;
padding: 24px;
}

View File

@ -2,17 +2,17 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<link rel="stylesheet" href="/fonts/fonts.css" preload />
<link rel="stylesheet" href="/preload.css" preload />
<link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="./manifest.json" />
<link rel="stylesheet" href="./fonts/fonts.css" preload />
<link rel="stylesheet" href="./preload.css" preload />
<script type="module" src="/src/index.jsx"></script>
<title>Farm Control</title>
</head>

View File

@ -65,7 +65,7 @@ const WizardView = ({
}
>
<Flex vertical gap='middle' style={{ flexGrow: 1, width: '100%' }}>
<Title level={2} style={{ margin: 0 }}>
<Title level={2} style={{ margin: '0 0 8px 0', lineHeight: 0.7 }}>
{title}
</Title>
<div style={{ minHeight: '260px', marginBottom: 4, width: '100%' }}>

View File

@ -252,7 +252,7 @@ export const Invoice = {
readOnly: true,
value: (objectData) => {
if (objectData?.orderType == 'salesOrder') {
return objectData?.order?.client
return objectData?.to
} else {
return null
}

View File

@ -11,7 +11,7 @@ const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
export default defineConfig({
base: '/',
base: './', // Required for Electron file:// protocol - absolute paths fail
resolve: {
alias: {
three: path.resolve(__dirname, 'node_modules/three')