Skip to content

Commit 47f6aea

Browse files
committed
Improve styles for location panel
1 parent 329bd8a commit 47f6aea

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/map-interface/src/location-panel/main.module.sass

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
flex-direction: column
5252
overflow-y: hidden
5353
background-color: var(--panel-background-color)
54+
--panel-padding: 0
5455

5556
&:global(.bp5-card)
5657
padding: 0
@@ -67,8 +68,12 @@
6768
padding: 0 1em
6869
&>:first-child
6970
margin-top: 1rem
71+
&>div:first-child
72+
margin-top: 0
7073
&>:last-child
7174
margin-bottom: 1rem
75+
&>div:last-child
76+
margin-bottom: 0
7277

7378
// The scrollable body of the infodrawer
7479
.infodrawer-body

packages/map-interface/src/main.module.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
padding: 10px
107107
background-color: var(--panel-background-color)
108108

109-
.panel-card
110-
padding: 10px
109+
.panel-card, .panel-card:global(.bp5-card)
110+
padding: var(--panel-padding, 10px)
111111
background-color: var(--panel-background-color)
112112
overflow: hidden
113113
border-radius: var(--map-panel-border-radius)

0 commit comments

Comments
 (0)