Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fayad-adscom committed Jun 12, 2024
1 parent e41b3d5 commit 0d9306d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 28 deletions.
4 changes: 3 additions & 1 deletion client/.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
REACT_APP_VERSION=1.17.5
REACT_APP_VERSION=1.17.4
# REACT_APP_SERVER_BASE_URL=https://extranet.adscom.fr:44382/taches
PUBLIC_URL=https://extranet.adscom.fr:44382/planka.test
2 changes: 1 addition & 1 deletion client/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const replaceBaseUrl = (compiler) => {
replaceInFile(info.targetPath, `"${BASE_URL_PLACEHOLDER}"`, '`${window.BASE_URL}/`');
} else if (/index\.html$/.exec(info.targetPath)) {
// For the main html file, we set a placeholder for sails to inject the correct value as runtime
replaceInFile(info.targetPath, BASE_URL_PLACEHOLDER, '<%= BASE_URL %>');
replaceInFile(info.targetPath, BASE_URL_PLACEHOLDER, process.env.PUBLIC_URL);
}
}
});
Expand Down
13 changes: 7 additions & 6 deletions client/public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Planka is an open source project management software"
/>
<meta name="description" content="Planka is an open source project management software" />
<link rel="apple-touch-icon" href="logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand All @@ -26,7 +23,11 @@
-->
<title>Planka</title>
</head>
<script>window.BASE_URL = "%PUBLIC_URL%";</script>
<script>
window.BASE_URL = '%PUBLIC_URL%';
window.SERVER_BASE_URL = '%REACT_APP_SERVER_BASE_URL%';
</script>

<body id="app">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
Expand Down
7 changes: 2 additions & 5 deletions client/src/components/Background/Background.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
position: fixed;
width: 100%;
z-index: -1;

@media only screen and (max-width: 797px) {
max-width: 100vw;
max-height: 100vh;
}
max-width: 100vw;
max-height: 100vh;
}
}
12 changes: 1 addition & 11 deletions client/src/components/BoardActions/Filters.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,8 @@
width: 220px;
margin: 0 12px;

@media only screen and (min-width: 600px) {
width: 280px;
}

@media only screen and (max-width: 600px) {
height: 30px;
width: calc(100vw - 40px);
margin: unset;
}

@media only screen and (min-width: 797px) {
width: 100%;
width: 280px;
height: 30px;
}

Expand Down
5 changes: 1 addition & 4 deletions client/src/components/Fixed/Fixed.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
position: fixed;
width: 100%;
z-index: 1;

@media only screen and (max-width: 797px) {
max-width: 100vw;
}
max-width: 100vw;
}
}

0 comments on commit 0d9306d

Please sign in to comment.