diff --git a/src/components/downloadCard.tsx b/src/components/downloadCard.tsx index e095de5..acf5a87 100644 --- a/src/components/downloadCard.tsx +++ b/src/components/downloadCard.tsx @@ -53,7 +53,7 @@ export default function DownloadCard() { /> {t("sidebar.download_title")}

-
+
-
- +
+
+ +
+ + +
); diff --git a/src/components/logInButton.tsx b/src/components/logInButton.tsx index bbfb7e2..fa871ca 100644 --- a/src/components/logInButton.tsx +++ b/src/components/logInButton.tsx @@ -1,4 +1,4 @@ -import { mdiAccount, mdiLogoutVariant } from "@mdi/js"; +import { mdiAccount, mdiLoginVariant, mdiLogoutVariant } from "@mdi/js"; import Icon from "@mdi/react"; import React, { FC } from "react"; import { Button, Navbar } from "react-bulma-components"; @@ -19,14 +19,14 @@ const LogInButton: FC = ({ inNavBar }) => { if (auth?.authenticated()) { return ( - + {osmUsername} - + - + {t("navbar.logout")} @@ -34,12 +34,14 @@ const LogInButton: FC = ({ inNavBar }) => { ); } return ( - + diff --git a/src/components/map.css b/src/components/map.css index b024cb6..d13f928 100644 --- a/src/components/map.css +++ b/src/components/map.css @@ -1,7 +1,7 @@ .map-wrap { position: absolute; width: 100%; - height: calc(100% - 60px); + height: calc(100% - 56px); /* calculate height of the screen minus the heading */ } @@ -29,7 +29,6 @@ filter: contrast(80%); } -.maplibregl-ctrl-group:not(:empty) -{ - box-shadow: 0 .5em 1em -.125em rgba(10,10,10,.1),0 0 0 1px rgba(10,10,10,.02) +.maplibregl-ctrl-group:not(:empty) { + box-shadow: 0 .5em 1em -.125em rgba(10, 10, 10, .1), 0 0 0 1px rgba(10, 10, 10, .02) } \ No newline at end of file diff --git a/src/components/modal.tsx b/src/components/modal.tsx index edd6eac..ff0380d 100644 --- a/src/components/modal.tsx +++ b/src/components/modal.tsx @@ -1,4 +1,4 @@ -import { mdiGithub, mdiInformationOutline } from "@mdi/js"; +import { mdiGithub, mdiInformationOutline, mdiTranslate } from "@mdi/js"; import Icon from "@mdi/react"; import React, { FC } from "react"; import { Button, Modal } from "react-bulma-components"; @@ -13,7 +13,6 @@ const ModalContent: FC = () => { const { modalState: { type, currentZoom, errorMessage, nodeId }, } = useAppContext(); - const helpTranslationText = `🖋 ${t("navbar.help_translating")}`; switch (type) { case ModalType.NodeAddedSuccessfully: { @@ -80,7 +79,8 @@ const ModalContent: FC = () => { rel="noreferrer" href="https://github.com/openstreetmap-polska/openaedmap-frontend#translating" > - {helpTranslationText} + + {t("navbar.help_translating")}

diff --git a/src/components/navbar.css b/src/components/navbar.css index bbbf975..cae2bd6 100644 --- a/src/components/navbar.css +++ b/src/components/navbar.css @@ -15,9 +15,16 @@ .navbarUrl { color: #effaf5 !important; } + .navbarLogo { width: 35px; height: 35px; fill: #effaf5 !important; - filter: drop-shadow(2px 2px 2px #026841e0); + filter: drop-shadow(2px 2px 2px #18855b); +} + +.navbar .is-outlined.button.button, +#language-switcher { + border-color: #f5f5f5b0; + filter: drop-shadow(2px 2px 2px #18855b); } \ No newline at end of file diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index a5f3cea..6cbc059 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -1,4 +1,4 @@ -import { mdiMapLegend } from "@mdi/js"; +import { mdiInformationOutline, mdiMapLegend } from "@mdi/js"; import Icon from "@mdi/react"; import React, { FC } from "react"; import { Button, Navbar } from "react-bulma-components"; @@ -19,7 +19,7 @@ const SiteNavbar: FC = ({ toggleSidebarShown }) => { return ( - + = ({ toggleSidebarShown }) => { {/* TODO: extract svg logo */} - + Open AED Map @@ -63,7 +63,9 @@ const SiteNavbar: FC = ({ toggleSidebarShown }) => { CloudFerro
- +
+ +
{ @@ -84,9 +86,13 @@ const SiteNavbar: FC = ({ toggleSidebarShown }) => { id="navbarMenu" > +
+ +
- + - - - + - - = ({ toggleSidebarShown }) => { /> = ({ toggleSidebarShown }) => { { ))}
- ); diff --git a/src/components/sidebar-left.tsx b/src/components/sidebar-left.tsx index 20d2e9f..b5edaa9 100644 --- a/src/components/sidebar-left.tsx +++ b/src/components/sidebar-left.tsx @@ -19,8 +19,6 @@ const SidebarLeft: FC = (props) => { setOpenChangesetId, } = props; - console.log("Opening left sidebar with action: ", action, " and data:", data); - if (!visible) return null; switch (action) { diff --git a/src/components/sidebar/defibrillatorDetails.tsx b/src/components/sidebar/defibrillatorDetails.tsx index 5e30283..94842de 100644 --- a/src/components/sidebar/defibrillatorDetails.tsx +++ b/src/components/sidebar/defibrillatorDetails.tsx @@ -98,7 +98,9 @@ const PhotoGallery: FC = ({ diff --git a/src/index.css b/src/index.css index 1883210..446f368 100644 --- a/src/index.css +++ b/src/index.css @@ -1,6 +1,8 @@ html { - overflow-y: hidden !important; /* Hide vertical scrollbar */ - overflow-x: hidden !important; /* Hide horizontal scrollbar */ + overflow-y: hidden !important; + /* Hide vertical scrollbar */ + overflow-x: hidden !important; + /* Hide horizontal scrollbar */ } body { @@ -59,22 +61,21 @@ code { background-color: #7a7a7a !important; } -.navbar-item a:hover -{ +.navbar-item a:hover { color: #000000 !important; } -.column -{ +.column { border-radius: 4px; } -a.navbar-item:focus-within, a.navbar-item:hover { +a.navbar-item:focus-within, +a.navbar-item:hover { background-color: #028955 !important; } #language-switcher { - max-width: 120px; + max-width: 130px; } .maplibregl-ctrl-geocoder { @@ -84,4 +85,8 @@ a.navbar-item:focus-within, a.navbar-item:hover { .partner-row { flex-wrap: wrap; align-items: center !important; +} + +.modal-card { + min-width: 30%; } \ No newline at end of file