@@ -143,30 +143,32 @@ function createMarkerElement(country: CountryHotspot): HTMLElement {
143143
144144 const container = document .createElement (' div' )
145145 container .style .cssText = `
146- display: flex; align-items: center ; gap: 8px ; padding: 8px; border-radius: 12px;
146+ display: flex; flex-direction: column ; gap: 2px ; padding: 8px; border-radius: 12px;
147147 background: white; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
148148 outline: 1.5px solid rgb(0 0 0 / 0.2); outline-offset: -1.5px;
149149 `
150150
151- // Flag container with rounded corners (original icon size, clipped)
152- const flagContainer = document .createElement (' span ' )
153- flagContainer .style .cssText = ' flex-shrink: 0; border-radius: 4px; overflow: hidden; display: flex ;'
151+ // Row 1: Flag + Country name
152+ const row1 = document .createElement (' div ' )
153+ row1 .style .cssText = ' display: flex; align-items: center; gap: 4px ;'
154154
155- const textContainer = document .createElement (' div ' )
156- textContainer .style .cssText = ' display: flex; flex-direction: column; text-align: left ;'
155+ const flagContainer = document .createElement (' span ' )
156+ flagContainer .style .cssText = ' flex-shrink: 0; border-radius: 2px; overflow: hidden; display: flex ;'
157157
158158 const nameSpan = document .createElement (' span' )
159159 nameSpan .style .cssText = ' font-size: 14px; color: #1f2937; line-height: 1.25; font-weight: 600;'
160160 nameSpan .textContent = country .name
161161
162+ row1 .appendChild (flagContainer )
163+ row1 .appendChild (nameSpan )
164+
165+ // Row 2: Location count
162166 const countSpan = document .createElement (' span' )
163167 countSpan .style .cssText = ' font-size: 12px; color: #374151; line-height: 1.25;'
164168 countSpan .className = ' location-count'
165169
166- textContainer .appendChild (nameSpan )
167- textContainer .appendChild (countSpan )
168- container .appendChild (flagContainer )
169- container .appendChild (textContainer )
170+ container .appendChild (row1 )
171+ container .appendChild (countSpan )
170172 button .appendChild (container )
171173
172174 // Load icon from bundled package
@@ -280,12 +282,10 @@ function flyToCountry(country: CountryHotspot) {
280282 translate-x =" -1/2" translate-y =" -1/2"
281283 @click =" flyToCountry(bubble)"
282284 >
283- <div flex =" ~ items-center gap-8" outline =" ~ offset--1.5 1.5 neutral/20" p-8 rounded-12 bg-neutral-0 shadow-lg >
284- <!-- Navigation icon with background -->
285- <div flex =" ~ items-center justify-center" rounded-full bg-neutral-100 shrink-0 size-32 :style =" { transform: `rotate(${bubble.edge!.arrowAngle}deg)` }" >
286- <Icon name =" i-tabler:navigation-filled" text-neutral-600 size-16 />
287- </div >
288- <div flex =" ~ col" text-left >
285+ <div flex =" ~ items-center gap-6" outline =" ~ offset--1.5 1.5 neutral/20" p-8 rounded-12 bg-neutral-0 shadow-lg >
286+ <!-- Navigation icon -->
287+ <Icon name =" i-tabler:navigation-filled" text-neutral-700 shrink-0 size-13 :style =" { transform: `rotate(${bubble.edge!.arrowAngle}deg)` }" />
288+ <div flex =" ~ col gap-2" text-left >
289289 <div flex =" ~ items-center gap-4" >
290290 <span rounded-2 flex shrink-0 overflow-hidden >
291291 <Icon :name =" bubble.flagIcon" size-16 />
0 commit comments