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; border-radius: 0 !important;
box-shadow: none !important; box-shadow: none !important;
} }
.ant-modal .ant-modal-content {
border-radius: 22px;
padding: 24px;
}

View File

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

View File

@ -65,7 +65,7 @@ const WizardView = ({
} }
> >
<Flex vertical gap='middle' style={{ flexGrow: 1, width: '100%' }}> <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}
</Title> </Title>
<div style={{ minHeight: '260px', marginBottom: 4, width: '100%' }}> <div style={{ minHeight: '260px', marginBottom: 4, width: '100%' }}>

View File

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

View File

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