Skip to content

Commit ae1d0b8

Browse files
committed
webui: fix insets in no bottom bar page
#18
1 parent 727736f commit ae1d0b8

4 files changed

Lines changed: 3 additions & 18 deletions

File tree

webui/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
<md-filled-button class="unpatch-only" id="unpatch" data-i18n="button_unpatch">UnPatch</md-filled-button>
203203
</div>
204204
<div class="output-terminal content-padding" id="patch-terminal"></div>
205-
<div class="keyboard-inset" id="patch-keyboard-inset"></div>
206205
</div>
207206
<div class="fab-container">
208207
<md-fab variant="primary" aria-label="reboot" id="reboot-fab">

webui/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ document.addEventListener('DOMContentLoaded', async () => {
148148
document.getElementById('embed').onclick = patchModule.embedKPM;
149149
document.getElementById('start').onclick = () => {
150150
document.querySelector('.trailing-btn').style.display = 'none';
151-
document.getElementById('patch-keyboard-inset').classList.add('hide');
152151
patchModule.patch("patch");
153152
}
154153
document.getElementById('unpatch').onclick = () => {

webui/route.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ function preparePatchUI(title, isUnpatch) {
6060

6161
document.querySelectorAll('.patch-only').forEach(p => p.classList.toggle('hidden', isUnpatch));
6262
document.querySelectorAll('.unpatch-only').forEach(p => p.classList.toggle('hidden', !isUnpatch));
63-
64-
if (isUnpatch) {
65-
document.getElementById('patch-keyboard-inset').classList.remove('hide');
66-
}
6763
}
6864

6965
export function navigateToHome() {

webui/styles.css

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ body {
136136
}
137137

138138
.content.no-bottom-bar {
139-
margin-bottom: 0;
139+
margin-bottom: var(--bottom-inset);
140140
}
141141

142142
.page {
@@ -203,7 +203,8 @@ body {
203203
opacity: 0;
204204
padding-top: 0;
205205
padding-bottom: 0;
206-
margin-top: -16px; /* flex gap override */
206+
margin-top: -16px;
207+
/* flex gap override */
207208
overflow: hidden;
208209
}
209210

@@ -683,13 +684,3 @@ md-dialog .checkbox-item {
683684
.fab-padding {
684685
padding-bottom: 72px;
685686
}
686-
687-
.keyboard-inset {
688-
width: 100%;
689-
padding-bottom: calc(40vh - 64px - 64px - var(--bottom-inset) - var(--top-inset)); /* base - top bar - fab - insets */
690-
transition: padding-bottom 0.2s ease;
691-
}
692-
693-
.keyboard-inset.hide {
694-
padding-bottom: 0;
695-
}

0 commit comments

Comments
 (0)