Skip to content

Commit

Permalink
Merge pull request #170 from gillohner/issue-82
Browse files Browse the repository at this point in the history
add borders to control-icons to fix shadow
  • Loading branch information
escapedcat authored Feb 4, 2025
2 parents e8cf267 + ffaa8e2 commit 1e65601
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/map/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ export const changeDefaultIcons = (
};
}
fullscreenButton.classList.add('dark:!bg-dark', 'dark:hover:!bg-dark/75', 'dark:border');
fullscreenButton.style.borderBottom = '1px solid #ccc';

leafletBar?.append(fullscreenButton);

Expand Down Expand Up @@ -433,6 +434,7 @@ export const geolocate = (L: Leaflet, map: Map) => {
);
if (locateButton) {
locateButton.style.borderRadius = '8px';
locateButton.style.borderBottom = '1px solid #ccc';
if (theme === 'light') {
const locateIcon: HTMLImageElement | null = document.querySelector('#locatebutton');
if (locateIcon) {
Expand Down Expand Up @@ -540,6 +542,7 @@ export const homeMarkerButtons = (
};
}
communityMapButton.classList.add('dark:!bg-dark', 'dark:hover:!bg-dark/75', 'dark:border');
communityMapButton.style.borderBottom = '1px solid #ccc';

addControlDiv.append(communityMapButton);
} else {
Expand Down
1 change: 1 addition & 0 deletions src/routes/map/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@
: '/icons/boost.svg'
} alt='boost' class='inline' id='boost-layer'/>`;
boostLayerButton.style.borderRadius = '0 0 8px 8px';
boostLayerButton.style.borderBottom = '1px solid #ccc';
boostLayerButton.onclick = function toggleLayer() {
if (boosts) {
$page.url.searchParams.delete('boosts');
Expand Down

0 comments on commit 1e65601

Please sign in to comment.