Spaces:
Paused
Paused
UI: Fix IServ header layout to align back button and title, add top padding to avoid notch/badge overlap
Browse files- index.html +1 -1
- src/styles/learn.css +1 -0
- src/views/iserv/iserv-view.js +6 -6
- src/views/scan/scan-view.js +1 -1
index.html
CHANGED
|
@@ -51,7 +51,7 @@
|
|
| 51 |
</head>
|
| 52 |
<body class="dark-theme in-chat-view">
|
| 53 |
|
| 54 |
-
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.2.
|
| 55 |
|
| 56 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 57 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
|
|
|
| 51 |
</head>
|
| 52 |
<body class="dark-theme in-chat-view">
|
| 53 |
|
| 54 |
+
<div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.2.4</div>
|
| 55 |
|
| 56 |
<!-- SVG Filters for Liquid Glass Refraction -->
|
| 57 |
<svg width="0" height="0" style="position: absolute; pointer-events: none;">
|
src/styles/learn.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
| 5 |
height: 100%;
|
| 6 |
width: 100%;
|
| 7 |
padding: 16px;
|
|
|
|
| 8 |
box-sizing: border-box;
|
| 9 |
overflow-y: auto;
|
| 10 |
}
|
|
|
|
| 5 |
height: 100%;
|
| 6 |
width: 100%;
|
| 7 |
padding: 16px;
|
| 8 |
+
padding-top: calc(env(safe-area-inset-top, 20px) + 24px);
|
| 9 |
box-sizing: border-box;
|
| 10 |
overflow-y: auto;
|
| 11 |
}
|
src/views/iserv/iserv-view.js
CHANGED
|
@@ -174,12 +174,12 @@ export class IServView {
|
|
| 174 |
|
| 175 |
renderLogin() {
|
| 176 |
this.container.innerHTML = `
|
| 177 |
-
<div class="iserv-container">
|
| 178 |
-
<div class="iserv-header" style="
|
| 179 |
<button onclick="window.openView('Hub')" class="icon-btn" style="background: transparent; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary);">
|
| 180 |
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
|
| 181 |
</button>
|
| 182 |
-
<h1>IServ Anbindung</h1>
|
| 183 |
</div>
|
| 184 |
<div class="iserv-login-card">
|
| 185 |
<h2>Mit IServ verbinden</h2>
|
|
@@ -306,14 +306,14 @@ export class IServView {
|
|
| 306 |
}
|
| 307 |
|
| 308 |
this.container.innerHTML = `
|
| 309 |
-
<div class="iserv-container">
|
| 310 |
${!this.isLoading ? `
|
| 311 |
-
<div class="iserv-header" style="display: flex; justify-content: space-between; align-items: center;">
|
| 312 |
<div style="display: flex; align-items: center; gap: 12px;">
|
| 313 |
<button onclick="window.openView('Hub')" class="icon-btn" style="background: transparent; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary);">
|
| 314 |
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
|
| 315 |
</button>
|
| 316 |
-
<h1 style="margin: 0;">Deine Aufgaben</h1>
|
| 317 |
</div>
|
| 318 |
<button class="icon-btn" id="iserv-logout-btn" title="Abmelden" style="width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: var(--text-primary); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;">
|
| 319 |
${getIconSvg('log-out')}
|
|
|
|
| 174 |
|
| 175 |
renderLogin() {
|
| 176 |
this.container.innerHTML = `
|
| 177 |
+
<div class="iserv-container" style="padding-top: calc(env(safe-area-inset-top, 20px) + 20px);">
|
| 178 |
+
<div class="iserv-header" style="justify-content: flex-start; gap: 12px; margin-bottom: 24px;">
|
| 179 |
<button onclick="window.openView('Hub')" class="icon-btn" style="background: transparent; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary);">
|
| 180 |
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
|
| 181 |
</button>
|
| 182 |
+
<h1 style="margin: 0; font-size: 28px;">IServ Anbindung</h1>
|
| 183 |
</div>
|
| 184 |
<div class="iserv-login-card">
|
| 185 |
<h2>Mit IServ verbinden</h2>
|
|
|
|
| 306 |
}
|
| 307 |
|
| 308 |
this.container.innerHTML = `
|
| 309 |
+
<div class="iserv-container" style="padding-top: calc(env(safe-area-inset-top, 20px) + 20px);">
|
| 310 |
${!this.isLoading ? `
|
| 311 |
+
<div class="iserv-header" style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;">
|
| 312 |
<div style="display: flex; align-items: center; gap: 12px;">
|
| 313 |
<button onclick="window.openView('Hub')" class="icon-btn" style="background: transparent; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary);">
|
| 314 |
<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
|
| 315 |
</button>
|
| 316 |
+
<h1 style="margin: 0; font-size: 28px;">Deine Aufgaben</h1>
|
| 317 |
</div>
|
| 318 |
<button class="icon-btn" id="iserv-logout-btn" title="Abmelden" style="width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: var(--text-primary); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center;">
|
| 319 |
${getIconSvg('log-out')}
|
src/views/scan/scan-view.js
CHANGED
|
@@ -33,7 +33,7 @@ export class ScanView {
|
|
| 33 |
render() {
|
| 34 |
|
| 35 |
this.container.innerHTML = `
|
| 36 |
-
<div style="padding: 24px; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; height: 100%; box-sizing: border-box; position: relative;">
|
| 37 |
|
| 38 |
<!-- Header -->
|
| 39 |
<div style="position: relative; margin-bottom: 16px;">
|
|
|
|
| 33 |
render() {
|
| 34 |
|
| 35 |
this.container.innerHTML = `
|
| 36 |
+
<div style="padding: 24px; padding-top: calc(env(safe-area-inset-top, 20px) + 24px); max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; height: 100%; box-sizing: border-box; position: relative;">
|
| 37 |
|
| 38 |
<!-- Header -->
|
| 39 |
<div style="position: relative; margin-bottom: 16px;">
|