Skip to content

Commit 85054fa

Browse files
authored
Merge pull request #1568 from swisstopo/develop
Release Candidate 1.1.0
2 parents 7827f0f + 4d84a24 commit 85054fa

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ui/src/elements/ngm-ion-modal.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ export class NgmIonModal extends LitElementI18n {
144144
render() {
145145
return html`
146146
<h2 class="header">${i18next.t('dtd_add_ion_token')}</h2>
147-
<div class="content">
147+
<div
148+
class="content ${classMap({
149+
'has-table': this.assetsToDisplay.length !== 0,
150+
})}"
151+
>
148152
<div .hidden=${this.assets.length}>
149153
<ngm-core-info-panel
150154
.icon=${'info'}
@@ -297,6 +301,10 @@ export class NgmIonModal extends LitElementI18n {
297301
margin-bottom: 84px;
298302
}
299303
304+
.content.has-table {
305+
padding-bottom: 0;
306+
}
307+
300308
.token-input {
301309
display: flex;
302310
gap: 12px;
@@ -333,7 +341,8 @@ export class NgmIonModal extends LitElementI18n {
333341
}
334342
335343
.table-container {
336-
max-height: 500px;
344+
max-height: calc(80vh - calc(24px * 16));
345+
padding-bottom: 24px;
337346
overflow-y: scroll;
338347
}
339348

0 commit comments

Comments
 (0)