Skip to content

Commit e4c8605

Browse files
bloveclaude
andcommitted
fix(ag-ui): hide sidebar launcher hint when App mode is on
In App mode the Google Map is the full-bleed background and the chat sidebar floats over it, so the placeholder "Use the launcher…" hint (projected into chat-sidebar's default content slot) floated unreadably over the map. Gate it on appMode !== 'on' so it only shows in plain sidebar mode where the area behind the chat is genuinely empty. Verified via DOM probe: /sidebar appMode off → hint present (1); /sidebar?appmode=on with the map mounted → hint absent (0). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a5e15af commit e4c8605

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

examples/ag-ui/angular/src/app/modes/sidebar-mode.component.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ import { WelcomeSuggestionsComponent } from './welcome-suggestions.component';
2222
(selectedModelChange)="shell.onModelChange($event)"
2323
>
2424
<div class="sidebar-mode__background">
25-
<p class="sidebar-mode__hint">
26-
Use the launcher (right edge) to dismiss or re-open the chat panel.
27-
</p>
25+
<!-- In App mode the map is the background; this placeholder hint would
26+
float unreadably over it, so only show it in plain sidebar mode. -->
27+
@if (shell.appMode() !== 'on') {
28+
<p class="sidebar-mode__hint">
29+
Use the launcher (right edge) to dismiss or re-open the chat panel.
30+
</p>
31+
}
2832
</div>
2933
<welcome-suggestions chatWelcomeSuggestions (selected)="send($event)" />
3034
</chat-sidebar>

0 commit comments

Comments
 (0)