Skip to content

Commit 76d3006

Browse files
committed
put search box next to zoom controler
1 parent e1f170f commit 76d3006

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/app.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body,
1818
transform: translateX(0);
1919
}
2020
.sidebar-toggle-btn {
21-
@apply fixed top-6 right-3 z-[2100] p-3 rounded-full bg-yellow-400 text-yellow-900 shadow-lg border font-bold hover:bg-yellow-300 transition duration-200;
21+
@apply fixed top-2 right-2 z-[2100] p-2 rounded-lg bg-yellow-400 text-yellow-900 shadow-lg border font-bold hover:bg-yellow-300 transition duration-200;
2222
}
2323

2424
/* サイドバーヘッダー */
@@ -98,3 +98,13 @@ body,
9898
.vmButton {
9999
display: none !important;
100100
}
101+
102+
/* Leafletズームコントロールを上部に配置 */
103+
.leaflet-top.leaflet-left {
104+
top: 8px !important;
105+
left: 8px !important;
106+
}
107+
108+
.leaflet-control-zoom {
109+
margin: 0 !important;
110+
}

src/pages/MapPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function MapPage() {
129129
<div ref={containerRef} className="w-full h-full" />
130130

131131
{/* 検索ボックス(常時表示) */}
132-
<div className="fixed top-4 left-4 right-20 z-[2100] max-w-md">
132+
<div className="fixed top-2 left-16 right-16 z-[2100] max-w-2xl mx-auto">
133133
<div className="search-input-wrapper bg-white rounded-lg shadow-lg">
134134
<svg
135135
className="search-icon w-4 h-4"
@@ -240,7 +240,7 @@ export function MapPage() {
240240
aria-label="メニューを開く"
241241
>
242242
<svg
243-
className="w-6 h-6"
243+
className="w-5 h-5"
244244
viewBox="0 0 24 24"
245245
fill="none"
246246
stroke="currentColor"

0 commit comments

Comments
 (0)