Skip to content

Commit 3f87c17

Browse files
committed
fix sidebar mode: add left:0 for map, light background override
1 parent 24e69ac commit 3f87c17

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

‎index.html‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,43 @@
4242
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@6656298f5cfdd24ab9ec6b748067020dcde761cd/app/style.css">
4343
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@6656298f5cfdd24ab9ec6b748067020dcde761cd/app/chat.css">
4444
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/boettiger-lab/geo-agent@6656298f5cfdd24ab9ec6b748067020dcde761cd/app/sidebar.css">
45+
46+
<style>
47+
/* Fix: sidebar.css sets width:auto + right but omits left:0,
48+
causing MapLibre container to collapse. */
49+
body.sidebar-mode #map {
50+
left: 0;
51+
}
52+
53+
/* Light sidebar theme */
54+
body.sidebar-mode #sidebar {
55+
background: #f8f9fa;
56+
color: #1a1a2e;
57+
box-shadow: -2px 0 6px rgba(0, 0, 0, 0.12);
58+
}
59+
body.sidebar-mode #sidebar-header,
60+
body.sidebar-mode #sidebar-layers-pane,
61+
body.sidebar-mode #chat-input-container,
62+
body.sidebar-mode #sidebar-footer {
63+
border-color: rgba(0, 0, 0, 0.1);
64+
}
65+
body.sidebar-mode #sidebar-hide {
66+
color: #444;
67+
}
68+
body.sidebar-mode #sidebar-hide:hover {
69+
background: rgba(0, 0, 0, 0.06);
70+
}
71+
body.sidebar-mode .sidebar-resize-handle {
72+
border-left-color: rgba(0, 0, 0, 0.15);
73+
}
74+
body.sidebar-mode #sidebar-footer .footer-link {
75+
color: rgba(0, 0, 0, 0.6);
76+
}
77+
body.sidebar-mode #sidebar-footer .footer-link:hover {
78+
color: rgba(0, 0, 0, 0.9);
79+
background: rgba(0, 0, 0, 0.05);
80+
}
81+
</style>
4582
</head>
4683

4784
<body>

0 commit comments

Comments
 (0)