From 62fd78b82d7ef606d01a6c25da5a6057ee04dbac Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 25 Jun 2025 04:32:14 +0200 Subject: [PATCH] hide version with log --- web/src/client/app.ts | 14 +++-- web/src/client/components/app-settings.ts | 73 +++++++++++++++-------- 2 files changed, 57 insertions(+), 30 deletions(-) diff --git a/web/src/client/app.ts b/web/src/client/app.ts index 589ae63e..e3808f6d 100644 --- a/web/src/client/app.ts +++ b/web/src/client/app.ts @@ -1242,10 +1242,16 @@ export class VibeTunnelApp extends LitElement { > -
- ${this.showLogLink ? html`Logs` : ''} - v${VERSION} -
+ ${ + this.showLogLink + ? html` +
+ Logs + v${VERSION} +
+ ` + : '' + } `; } } diff --git a/web/src/client/components/app-settings.ts b/web/src/client/components/app-settings.ts index 565eac0f..b3e1fb90 100644 --- a/web/src/client/components/app-settings.ts +++ b/web/src/client/components/app-settings.ts @@ -1,6 +1,7 @@ import { html, LitElement } from 'lit'; import { customElement, property, state } from 'lit/decorators.js'; import { createLogger } from '../utils/logger.js'; +import { responsiveObserver } from '../utils/responsive-utils.js'; const logger = createLogger('app-settings'); @@ -24,10 +25,24 @@ export class AppSettings extends LitElement { @property({ type: Boolean }) open = false; @state() private preferences: AppPreferences = DEFAULT_PREFERENCES; + @state() private isMobile = false; + private unsubscribeResponsive?: () => void; connectedCallback() { super.connectedCallback(); this.loadPreferences(); + + // Subscribe to responsive changes + this.unsubscribeResponsive = responsiveObserver.subscribe((state) => { + this.isMobile = state.isMobile; + }); + } + + disconnectedCallback() { + super.disconnectedCallback(); + if (this.unsubscribeResponsive) { + this.unsubscribeResponsive(); + } } private loadPreferences() { @@ -109,35 +124,41 @@ export class AppSettings extends LitElement {
- -
-
- -

- Capture keyboard input directly without showing a text field (desktop-like experience) -

-
- -
+ > + + +
+ ` + : '' + } -
+