@firstpick/pi-package-webui 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEVELOPMENT.md +151 -12
- package/README.md +34 -6
- package/TECHNICAL.md +75 -8
- package/bin/pi-webui.mjs +5390 -11423
- package/index.ts +10 -3
- package/lib/component-update-state.mjs +2 -2
- package/lib/git-workflow-preference-values.mjs +122 -0
- package/lib/git-workflow-preferences.mjs +35 -563
- package/lib/package-updates.mjs +260 -0
- package/lib/rpc-supervisor-client.mjs +8 -4
- package/lib/server/app-runners.mjs +1667 -0
- package/lib/server/codex-fast-mode.mjs +161 -0
- package/lib/server/conversation-mode.mjs +218 -0
- package/lib/server/conversation-voice.mjs +318 -0
- package/lib/server/extension-ui-requests.mjs +114 -0
- package/lib/server/git-generation.mjs +459 -0
- package/lib/server/git-mutations.mjs +1827 -0
- package/lib/server/git-reads.mjs +608 -0
- package/lib/server/git-worktree-sessions.mjs +408 -0
- package/lib/server/helper-requests.mjs +82 -0
- package/lib/server/no-project-workspaces.mjs +103 -0
- package/lib/server/rpc-transports.mjs +394 -0
- package/lib/server/settings-store.mjs +544 -0
- package/lib/server/sse-delivery.mjs +138 -0
- package/lib/server/workspace-files.mjs +563 -0
- package/lib/update/supervisor.mjs +4 -0
- package/lib/webui-workspaces.mjs +2 -0
- package/package.json +4 -4
- package/public/activity-agents-controller.mjs +269 -0
- package/public/activity-events-controller.mjs +236 -0
- package/public/activity-intercom-controller.mjs +627 -0
- package/public/activity-queue-controller.mjs +534 -0
- package/public/activity-todo-view.mjs +89 -0
- package/public/activity-usage-controller.mjs +589 -0
- package/public/app.js +3761 -3886
- package/public/conversation-overview.css +84 -0
- package/public/conversation-overview.mjs +193 -0
- package/public/draft-conversations.mjs +135 -0
- package/public/focused-composer-controls.css +111 -0
- package/public/focused-composer-controls.mjs +143 -0
- package/public/focused-composer-disclosure.mjs +223 -0
- package/public/focused-shell-adapter.css +264 -0
- package/public/focused-shell-adapter.mjs +257 -0
- package/public/index.html +137 -80
- package/public/model-catalog-order.mjs +63 -0
- package/public/platform-event-stream.mjs +64 -0
- package/public/project-artifact-controller.mjs +218 -0
- package/public/project-file-viewer-controller.mjs +383 -0
- package/public/project-git-tools-controller.mjs +181 -0
- package/public/project-runners-controller.mjs +220 -0
- package/public/service-worker.js +52 -1
- package/public/session-attention-scheduler.mjs +182 -0
- package/public/session-composer-store.mjs +56 -0
- package/public/session-context.mjs +51 -0
- package/public/session-extension-requests.mjs +63 -0
- package/public/session-shelf-state.mjs +151 -0
- package/public/session-shelves.css +171 -0
- package/public/session-shelves.mjs +95 -0
- package/public/settings-navigation-controller.mjs +249 -0
- package/public/settings-navigation.css +61 -0
- package/public/settings-resource-controller.mjs +232 -0
- package/public/settings-workspace.css +19 -0
- package/public/settings-workspace.mjs +175 -0
- package/public/shell-actions.mjs +87 -0
- package/public/shell-attention-inbox.css +72 -0
- package/public/shell-attention-inbox.mjs +198 -0
- package/public/shell-context-actions.css +61 -0
- package/public/shell-context-actions.mjs +168 -0
- package/public/shell-inspector-resize.mjs +124 -0
- package/public/shell-navigation-resize.mjs +107 -0
- package/public/shell-navigation.mjs +127 -0
- package/public/shell-preferences.mjs +108 -0
- package/public/shell-surfaces.mjs +99 -0
- package/public/shell-tools-launcher.css +97 -0
- package/public/shell-tools-launcher.mjs +222 -0
- package/public/shell-view-host.mjs +115 -0
- package/public/shell-workspace.css +266 -0
- package/public/shell-workspace.mjs +402 -0
- package/public/sidebar-update-menu.css +190 -0
- package/public/sidebar-update-menu.mjs +512 -0
- package/public/styles.css +320 -169
- package/public/subagent-launch-slot-state.mjs +2 -2
- package/public/themed-selects.css +156 -0
- package/public/workspace-choices.mjs +104 -0
- package/tests/activity-agents-controller.test.mjs +652 -0
- package/tests/activity-events-controller.test.mjs +511 -0
- package/tests/app-runner-terminal-static.test.mjs +3 -3
- package/tests/append-system-http.test.mjs +7 -6
- package/tests/append-system-selector-static.test.mjs +6 -6
- package/tests/aur-review-widget-static.test.mjs +11 -3
- package/tests/boot-failure-diagnostics.test.mjs +8 -3
- package/tests/browser/activity-intercom-controller.spec.mjs +457 -0
- package/tests/browser/activity-navigation-integration.spec.mjs +45 -0
- package/tests/browser/activity-owner-integration.spec.mjs +201 -0
- package/tests/browser/activity-queue-controller.spec.mjs +405 -0
- package/tests/browser/activity-section-picker.spec.mjs +294 -0
- package/tests/browser/activity-todo-view.spec.mjs +60 -0
- package/tests/browser/activity-usage-controller.spec.mjs +416 -0
- package/tests/browser/compact-layout-integration.spec.mjs +58 -0
- package/tests/browser/composer-action-grid-reorder.spec.mjs +16 -0
- package/tests/browser/composer-disclosure.spec.mjs +389 -0
- package/tests/browser/composer-toolbar-polish.spec.mjs +343 -0
- package/tests/browser/control-deck-component-updates.spec.mjs +5 -14
- package/tests/browser/control-deck-side-panels.spec.mjs +27 -12
- package/tests/browser/control-visibility.spec.mjs +5 -0
- package/tests/browser/controls-layout.spec.mjs +21 -2
- package/tests/browser/conversation-overview.spec.mjs +251 -0
- package/tests/browser/draft-conversations.spec.mjs +276 -0
- package/tests/browser/empty-startup-fixture.mjs +135 -0
- package/tests/browser/empty-startup.spec.mjs +282 -0
- package/tests/browser/events-tree-context-menu.spec.mjs +1 -0
- package/tests/browser/focused-composer-more.spec.mjs +127 -0
- package/tests/browser/focused-model-shortcuts.spec.mjs +120 -0
- package/tests/browser/focused-navigation-fixture.mjs +32 -0
- package/tests/browser/focused-project-activity.spec.mjs +111 -0
- package/tests/browser/focused-shell-integration.spec.mjs +208 -0
- package/tests/browser/folder-picker-layout-fixture.mjs +13 -0
- package/tests/browser/folder-picker-layout.spec.mjs +302 -0
- package/tests/browser/footer-model-advanced-layout.spec.mjs +27 -14
- package/tests/browser/git-setup-cancel.spec.mjs +251 -0
- package/tests/browser/guided-git-fallback.spec.mjs +40 -21
- package/tests/browser/inspector-header.spec.mjs +221 -0
- package/tests/browser/inspector-overview-integration.spec.mjs +104 -0
- package/tests/browser/inspector-resize.spec.mjs +227 -0
- package/tests/browser/inspector-topic-overflow.spec.mjs +56 -0
- package/tests/browser/interaction-action-discovery.spec.mjs +332 -0
- package/tests/browser/interaction-attention-inbox.spec.mjs +364 -0
- package/tests/browser/interaction-attention-integration.spec.mjs +53 -0
- package/tests/browser/interaction-composer-controls.spec.mjs +267 -0
- package/tests/browser/interaction-composer-integration.spec.mjs +175 -0
- package/tests/browser/interaction-continuity.spec.mjs +50 -26
- package/tests/browser/interaction-model-picker.spec.mjs +86 -0
- package/tests/browser/last-terminal-close.spec.mjs +280 -0
- package/tests/browser/mobile-foundation.spec.mjs +172 -20
- package/tests/browser/model-catalog-groups.spec.mjs +104 -0
- package/tests/browser/more-row-menus.spec.mjs +258 -0
- package/tests/browser/new-tab-hit-target.spec.mjs +228 -0
- package/tests/browser/no-project-conversation.spec.mjs +113 -0
- package/tests/browser/optimistic-prompt.spec.mjs +3 -0
- package/tests/browser/overhaul-w7-accessibility.spec.mjs +227 -0
- package/tests/browser/overhaul-w7-capabilities.spec.mjs +298 -0
- package/tests/browser/overhaul-w7-companions.spec.mjs +290 -0
- package/tests/browser/overhaul-w7-focus-repairs.spec.mjs +210 -0
- package/tests/browser/overhaul-w7-layout-repairs.spec.mjs +183 -0
- package/tests/browser/overhaul-w7-parent-repairs.spec.mjs +97 -0
- package/tests/browser/overhaul-w7-pwa.spec.mjs +247 -0
- package/tests/browser/overhaul-w7-responsive.spec.mjs +450 -0
- package/tests/browser/overhaul-w7-update.spec.mjs +215 -0
- package/tests/browser/overhaul-w7-zoom.spec.mjs +243 -0
- package/tests/browser/overview-agent-ownership.spec.mjs +45 -0
- package/tests/browser/persistent-ui-layout.spec.mjs +3 -0
- package/tests/browser/project-artifact-controller.spec.mjs +324 -0
- package/tests/browser/project-artifact-integration.spec.mjs +103 -0
- package/tests/browser/project-file-buffer-integration.spec.mjs +230 -0
- package/tests/browser/project-git-tools-integration.spec.mjs +369 -0
- package/tests/browser/session-fixture.mjs +118 -0
- package/tests/browser/session-ownership.spec.mjs +175 -0
- package/tests/browser/session-shelves-integration.spec.mjs +219 -0
- package/tests/browser/session-shelves.spec.mjs +340 -0
- package/tests/browser/session-sidebar-resize.spec.mjs +138 -0
- package/tests/browser/session-summary.spec.mjs +17 -12
- package/tests/browser/settings-complete-home.spec.mjs +463 -0
- package/tests/browser/settings-entrypoint.spec.mjs +104 -0
- package/tests/browser/settings-navigation-controller.spec.mjs +383 -0
- package/tests/browser/settings-navigation-integration.spec.mjs +348 -0
- package/tests/browser/settings-resource-lifetime.spec.mjs +349 -0
- package/tests/browser/settings-workspace-integration.spec.mjs +132 -0
- package/tests/browser/shell-ownership.spec.mjs +398 -0
- package/tests/browser/shell-rollout-fixture.mjs +259 -0
- package/tests/browser/shell-rollout.spec.mjs +357 -0
- package/tests/browser/shell-tools-launcher.spec.mjs +260 -0
- package/tests/browser/shell-workspace.spec.mjs +433 -0
- package/tests/browser/side-panel-section-reorder.spec.mjs +3 -1
- package/tests/browser/sidebar-floating-tooltips.spec.mjs +37 -0
- package/tests/browser/sidebar-update-integration.spec.mjs +277 -0
- package/tests/browser/sidebar-update-menu.spec.mjs +402 -0
- package/tests/browser/sidebar-update-progress.spec.mjs +472 -0
- package/tests/browser/stream-output-isolation.spec.mjs +6 -3
- package/tests/browser/themed-selects.spec.mjs +297 -0
- package/tests/browser/thread-start-flow.spec.mjs +481 -0
- package/tests/browser/ui-polish-activity-controls.spec.mjs +177 -0
- package/tests/browser/ui-polish-features.spec.mjs +85 -0
- package/tests/browser/ui-polish-file-header.spec.mjs +43 -0
- package/tests/browser/ui-polish-local-git.spec.mjs +183 -0
- package/tests/browser/ui-polish-mobile-recovery.spec.mjs +36 -0
- package/tests/browser/ui-polish-navigation.spec.mjs +127 -0
- package/tests/browser/ui-polish-session-actions.spec.mjs +282 -0
- package/tests/browser/user-noticeable-fixes.spec.mjs +10 -3
- package/tests/browser/windows-drive-parent.spec.mjs +4 -2
- package/tests/browser/workspace-draft-selection.spec.mjs +266 -0
- package/tests/codex-fast-mode-static.test.mjs +16 -11
- package/tests/codex-speed-mode-browser-state.test.mjs +6 -3
- package/tests/codex-usage-source.test.mjs +4 -3
- package/tests/component-update-api-static.test.mjs +2 -2
- package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
- package/tests/control-deck-component-updates-static.test.mjs +9 -4
- package/tests/control-visibility-static.test.mjs +3 -3
- package/tests/controls-layout-static.test.mjs +5 -5
- package/tests/conversation-overview-adapter.test.mjs +100 -0
- package/tests/document-artifact-static.test.mjs +2 -1
- package/tests/draft-conversations.test.mjs +205 -0
- package/tests/empty-startup-launcher.test.mjs +197 -0
- package/tests/events-tree-context-menu-static.test.mjs +22 -18
- package/tests/fake-pi-session-ownership.test.mjs +302 -0
- package/tests/fast-mode-client-static.test.mjs +1 -1
- package/tests/feature-decision-output-popup-static.test.mjs +2 -2
- package/tests/feature-system-prompt-optional-feature-static.test.mjs +1 -1
- package/tests/file-viewer-image-static.test.mjs +15 -11
- package/tests/file-viewer-search-static.test.mjs +5 -5
- package/tests/fixtures/fake-pi.mjs +41 -9
- package/tests/footer-provider-usage-visual-static.test.mjs +7 -6
- package/tests/foreground-transcript-catch-up-static.test.mjs +7 -4
- package/tests/git-footer-context-menu-static.test.mjs +1 -1
- package/tests/git-panel-file-preview-static.test.mjs +41 -48
- package/tests/git-panel-live-updates-static.test.mjs +2 -1
- package/tests/git-workflow-dispatch.test.mjs +66 -0
- package/tests/git-workflow-preferences.test.mjs +9 -1
- package/tests/guided-git-activation-static.test.mjs +14 -11
- package/tests/guided-git-fallback-ui-static.test.mjs +8 -5
- package/tests/guided-git-message-reliability-static.test.mjs +10 -6
- package/tests/guided-git-publication-backend-static.test.mjs +16 -11
- package/tests/http-endpoints-harness.test.mjs +21 -9
- package/tests/interaction-state-stability-static.test.mjs +4 -3
- package/tests/intercom-conversation-viewer-static.test.mjs +29 -17
- package/tests/intercom-tag-layout-static.test.mjs +13 -12
- package/tests/intercom-tag-overflow-layout.test.mjs +11 -10
- package/tests/main-output-loading-static.test.mjs +4 -4
- package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
- package/tests/mobile-compact-layout.test.mjs +2 -2
- package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
- package/tests/mobile-foundation-static.test.mjs +10 -7
- package/tests/mobile-phone-experience-static.test.mjs +3 -2
- package/tests/mobile-static.test.mjs +173 -135
- package/tests/model-catalog-order.test.mjs +103 -0
- package/tests/native-parity.test.mjs +6 -4
- package/tests/native-session-choice-owner.test.mjs +102 -0
- package/tests/native-update-lifecycle.test.mjs +10 -5
- package/tests/no-project-http-harness.test.mjs +328 -0
- package/tests/no-project-navigation.test.mjs +54 -0
- package/tests/no-project-workspaces.test.mjs +77 -0
- package/tests/open-issue-wizard-static.test.mjs +1 -1
- package/tests/optional-feature-migration-frontend.test.mjs +4 -4
- package/tests/optional-feature-prompt-impact-static.test.mjs +3 -3
- package/tests/package-updates.test.mjs +630 -0
- package/tests/persistent-ui-layout-static.test.mjs +3 -3
- package/tests/platform-event-stream.test.mjs +253 -0
- package/tests/project-file-viewer-controller.test.mjs +652 -0
- package/tests/project-git-tools-adapter.test.mjs +103 -0
- package/tests/project-git-tools-controller.test.mjs +577 -0
- package/tests/project-runners-controller.test.mjs +453 -0
- package/tests/prompt-input-vertical-scroll-static.test.mjs +3 -3
- package/tests/prompt-routing-input-clear-static.test.mjs +2 -2
- package/tests/questionnaire-dialog.test.mjs +6 -6
- package/tests/queue-edit-reorder-static.test.mjs +48 -51
- package/tests/rpc-supervisor-host.test.mjs +4 -1
- package/tests/safety-guard-auto-review-static.test.mjs +1 -1
- package/tests/sampling-native-controls-user-flow.test.mjs +7 -1
- package/tests/server-app-runners.test.mjs +536 -0
- package/tests/server-codex-fast-mode.test.mjs +346 -0
- package/tests/server-conversation-mode.test.mjs +386 -0
- package/tests/server-conversation-voice.test.mjs +426 -0
- package/tests/server-extension-ui-requests.test.mjs +357 -0
- package/tests/server-git-generation.test.mjs +558 -0
- package/tests/server-git-mutations.test.mjs +729 -0
- package/tests/server-git-reads.test.mjs +381 -0
- package/tests/server-git-worktree-sessions.test.mjs +502 -0
- package/tests/server-helper-requests.test.mjs +364 -0
- package/tests/server-rpc-transports.test.mjs +553 -0
- package/tests/server-settings-store.test.mjs +132 -0
- package/tests/server-shell-rollout.test.mjs +478 -0
- package/tests/server-sse-delivery.test.mjs +410 -0
- package/tests/server-workspace-files.test.mjs +546 -0
- package/tests/session-attention-scheduler.test.mjs +514 -0
- package/tests/session-composer-store.test.mjs +153 -0
- package/tests/session-context.test.mjs +134 -0
- package/tests/session-extension-requests.test.mjs +193 -0
- package/tests/session-ownership-adapter.test.mjs +130 -0
- package/tests/session-sampling-ui-static.test.mjs +10 -4
- package/tests/session-send-lifetime.test.mjs +140 -0
- package/tests/session-shelf-state.test.mjs +348 -0
- package/tests/session-shelves-adapter.test.mjs +79 -0
- package/tests/session-summary-lifetime.test.mjs +54 -0
- package/tests/settings-resource-controller.test.mjs +548 -0
- package/tests/shell-action-adapter.test.mjs +169 -0
- package/tests/shell-actions.test.mjs +182 -0
- package/tests/shell-navigation.test.mjs +348 -0
- package/tests/shell-preferences.test.mjs +367 -0
- package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
- package/tests/stream-output-isolation-static.test.mjs +1 -1
- package/tests/subagent-gate-visibility.test.mjs +1 -1
- package/tests/subagent-launch-slot-state.test.mjs +2 -2
- package/tests/subagent-launch-slots-static.test.mjs +1 -1
- package/tests/subagent-observability-static.test.mjs +2 -2
- package/tests/subagent-reliability-integration.test.mjs +13 -30
- package/tests/syntax-highlighting-static.test.mjs +3 -3
- package/tests/tab-close-continuity-static.test.mjs +1 -1
- package/tests/tab-metadata-ordering.test.mjs +99 -0
- package/tests/terminal-cwd-grouping-static.test.mjs +2 -2
- package/tests/terminal-tab-prompt-tooltip-static.test.mjs +2 -0
- package/tests/terminal-tab-workspace-static.test.mjs +5 -4
- package/tests/terminal-tabs-resize-static.test.mjs +1 -1
- package/tests/theme-customizer-static.test.mjs +1 -1
- package/tests/thread-display-title.test.mjs +44 -0
- package/tests/update-api-harness.test.mjs +15 -14
- package/tests/update-tab-restore-harness.test.mjs +3 -0
- package/tests/webui-settings-locking.test.mjs +2 -2
- package/tests/windows-drive-cwd-picker-static.test.mjs +7 -9
- package/tests/workspace-choices.test.mjs +114 -0
- package/tests/workspace-save-load-static.test.mjs +7 -4
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
const EDGE = 8;
|
|
2
|
+
const TRAY_GAP = 8;
|
|
3
|
+
const OPTIONS_WIDTH = 416;
|
|
4
|
+
const POSITION_PROPERTIES = ['left', 'top', 'width', 'max-height'].map(name => `--focused-flyout-${name}`);
|
|
5
|
+
const LABEL = 'More composer actions';
|
|
6
|
+
|
|
7
|
+
/** Positions canonical composer controls. The caller owns menu visibility and action dispatch. */
|
|
8
|
+
export function createFocusedComposerDisclosure({ document, trigger, panel, optionsPanel }) {
|
|
9
|
+
const view = document.defaultView;
|
|
10
|
+
let enabled = false;
|
|
11
|
+
let open = false;
|
|
12
|
+
let optionsOpen = false;
|
|
13
|
+
let disposed = false;
|
|
14
|
+
let frame = 0;
|
|
15
|
+
let resizeObserver;
|
|
16
|
+
let contentObserver;
|
|
17
|
+
let presentation;
|
|
18
|
+
let pendingMenuFocus;
|
|
19
|
+
const positionedMenus = new Set();
|
|
20
|
+
|
|
21
|
+
function clearPosition(element) {
|
|
22
|
+
for (const property of POSITION_PROPERTIES) element.style.removeProperty(property);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function setPosition(element, name, value) {
|
|
26
|
+
const property = `--focused-flyout-${name}`;
|
|
27
|
+
const pixels = `${Math.round(value * 100) / 100}px`;
|
|
28
|
+
if (element.style.getPropertyValue(property) !== pixels) element.style.setProperty(property, pixels);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function visible(element) {
|
|
32
|
+
return element.isConnected && element.getClientRects().length > 0 && view.getComputedStyle(element).visibility !== 'hidden';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function viewport() {
|
|
36
|
+
const visual = view.visualViewport;
|
|
37
|
+
const left = (visual?.offsetLeft || 0) + EDGE;
|
|
38
|
+
const top = (visual?.offsetTop || 0) + EDGE;
|
|
39
|
+
return {
|
|
40
|
+
left, top,
|
|
41
|
+
right: left + (visual?.width || view.innerWidth) - EDGE * 2,
|
|
42
|
+
bottom: top + (visual?.height || view.innerHeight) - EDGE * 2,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function position() {
|
|
47
|
+
if (!enabled || !open) return;
|
|
48
|
+
const bounds = viewport();
|
|
49
|
+
for (const menuPanel of positionedMenus) {
|
|
50
|
+
if (panel.contains(menuPanel)) continue;
|
|
51
|
+
clearPosition(menuPanel);
|
|
52
|
+
positionedMenus.delete(menuPanel);
|
|
53
|
+
}
|
|
54
|
+
if (visible(trigger) && visible(panel)) {
|
|
55
|
+
const anchor = trigger.getBoundingClientRect();
|
|
56
|
+
const send = trigger.parentElement?.querySelector('#sendButton');
|
|
57
|
+
const right = send && visible(send) ? Math.min(bounds.right, send.getBoundingClientRect().left - TRAY_GAP) : bounds.right;
|
|
58
|
+
const left = Math.max(bounds.left, Math.min(anchor.right + TRAY_GAP, right));
|
|
59
|
+
setPosition(panel, 'left', left);
|
|
60
|
+
setPosition(panel, 'width', Math.max(0, right - left));
|
|
61
|
+
setPosition(panel, 'max-height', Math.max(0, Math.min(anchor.bottom, bounds.bottom) - bounds.top));
|
|
62
|
+
const height = panel.getBoundingClientRect().height;
|
|
63
|
+
setPosition(panel, 'top', Math.max(bounds.top, Math.min(anchor.bottom, bounds.bottom) - height));
|
|
64
|
+
}
|
|
65
|
+
for (const menu of panel.querySelectorAll(':scope > .composer-publish-menu')) {
|
|
66
|
+
const menuTrigger = menu.querySelector(':scope > button[aria-haspopup="menu"]');
|
|
67
|
+
const menuPanel = menu.querySelector(':scope > .composer-publish-menu-panel');
|
|
68
|
+
if (!menuTrigger || !menuPanel) continue;
|
|
69
|
+
if (!visible(menuTrigger) || !visible(menuPanel)) {
|
|
70
|
+
clearPosition(menuPanel);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
positionedMenus.add(menuPanel);
|
|
74
|
+
const anchor = menuTrigger.getBoundingClientRect();
|
|
75
|
+
const preferredWidth = menuPanel === optionsPanel ? OPTIONS_WIDTH
|
|
76
|
+
: menu.classList.contains('composer-app-runner-menu') ? 352 : 224;
|
|
77
|
+
const width = Math.min(preferredWidth, bounds.right - bounds.left);
|
|
78
|
+
const above = Math.max(0, anchor.top - bounds.top);
|
|
79
|
+
const below = Math.max(0, bounds.bottom - anchor.bottom);
|
|
80
|
+
setPosition(menuPanel, 'width', width);
|
|
81
|
+
setPosition(menuPanel, 'max-height', Math.max(above, below));
|
|
82
|
+
setPosition(menuPanel, 'left', Math.max(bounds.left, Math.min(anchor.left, bounds.right - width)));
|
|
83
|
+
const height = menuPanel.getBoundingClientRect().height;
|
|
84
|
+
// Share an edge with the trigger so native pointerleave does not close the menu in transit.
|
|
85
|
+
const top = above >= below ? anchor.top - height : anchor.bottom;
|
|
86
|
+
setPosition(menuPanel, 'top', Math.max(bounds.top, Math.min(top, bounds.bottom - height)));
|
|
87
|
+
if (pendingMenuFocus?.trigger === menuTrigger && menuTrigger.getAttribute('aria-expanded') === 'true') {
|
|
88
|
+
const items = menuItems(menuPanel);
|
|
89
|
+
const target = pendingMenuFocus.last ? items.at(-1) : items[0];
|
|
90
|
+
pendingMenuFocus = null;
|
|
91
|
+
target?.focus({ preventScroll: true });
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function menuItems(menuPanel) {
|
|
97
|
+
return [...menuPanel.querySelectorAll('button:not(:disabled), [role="menuitem"]:not([aria-disabled="true"])')]
|
|
98
|
+
.filter(item => !item.disabled && item.getAttribute('aria-disabled') !== 'true' && visible(item) && !item.closest('[hidden]'));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function handleMenuKeydown(event) {
|
|
102
|
+
if (!enabled || !open || event.defaultPrevented) return;
|
|
103
|
+
const menu = event.target.closest('.composer-publish-menu');
|
|
104
|
+
if (!menu || menu.parentElement !== panel) return;
|
|
105
|
+
const menuTrigger = menu.querySelector(':scope > button[aria-haspopup="menu"]');
|
|
106
|
+
const controlledId = menuTrigger?.getAttribute('aria-controls');
|
|
107
|
+
const menuPanel = (controlledId && document.getElementById(controlledId))
|
|
108
|
+
|| menu.querySelector(':scope > .composer-publish-menu-panel');
|
|
109
|
+
if (!menuTrigger || !menuPanel || !['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;
|
|
110
|
+
if (event.target === menuTrigger) {
|
|
111
|
+
// An explicit keyboard opening ends the native Escape hover/focus suppression.
|
|
112
|
+
menu.classList.remove('menu-dismissed');
|
|
113
|
+
if (menuPanel === optionsPanel) return;
|
|
114
|
+
if (menuTrigger.getAttribute('aria-expanded') !== 'true') {
|
|
115
|
+
event.preventDefault();
|
|
116
|
+
pendingMenuFocus = { trigger: menuTrigger, last: ['ArrowUp', 'End'].includes(event.key) };
|
|
117
|
+
menuTrigger.click();
|
|
118
|
+
schedulePosition();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (menuPanel === optionsPanel || (event.target !== menuTrigger && !menuPanel.contains(event.target))) return;
|
|
123
|
+
const items = menuItems(menuPanel);
|
|
124
|
+
if (!items.length) return;
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
const index = items.indexOf(document.activeElement);
|
|
127
|
+
const next = event.key === 'Home' ? 0 : event.key === 'End' ? items.length - 1
|
|
128
|
+
: (index + (event.key === 'ArrowUp' ? -1 : 1) + items.length) % items.length;
|
|
129
|
+
items[index < 0 && event.key === 'ArrowUp' ? items.length - 1 : next].focus({ preventScroll: true });
|
|
130
|
+
position();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function schedulePosition() {
|
|
134
|
+
if (!frame) frame = view.requestAnimationFrame(() => {
|
|
135
|
+
frame = 0;
|
|
136
|
+
position();
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function stopWatching() {
|
|
141
|
+
resizeObserver?.disconnect();
|
|
142
|
+
contentObserver?.disconnect();
|
|
143
|
+
resizeObserver = null;
|
|
144
|
+
contentObserver = null;
|
|
145
|
+
view.removeEventListener('resize', schedulePosition);
|
|
146
|
+
document.removeEventListener('scroll', schedulePosition, true);
|
|
147
|
+
panel.removeEventListener('keydown', handleMenuKeydown, true);
|
|
148
|
+
pendingMenuFocus = null;
|
|
149
|
+
view.visualViewport?.removeEventListener('resize', schedulePosition);
|
|
150
|
+
view.visualViewport?.removeEventListener('scroll', schedulePosition);
|
|
151
|
+
if (frame) view.cancelAnimationFrame(frame);
|
|
152
|
+
frame = 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function startWatching() {
|
|
156
|
+
if (resizeObserver) return;
|
|
157
|
+
resizeObserver = new view.ResizeObserver(schedulePosition);
|
|
158
|
+
for (let node = trigger; node; node = node.parentElement) resizeObserver.observe(node);
|
|
159
|
+
resizeObserver.observe(panel);
|
|
160
|
+
for (const menuPanel of panel.querySelectorAll(':scope > .composer-publish-menu > .composer-publish-menu-panel')) {
|
|
161
|
+
resizeObserver.observe(menuPanel);
|
|
162
|
+
}
|
|
163
|
+
contentObserver = new view.MutationObserver(schedulePosition);
|
|
164
|
+
contentObserver.observe(panel, {
|
|
165
|
+
subtree: true, childList: true, characterData: true, attributes: true,
|
|
166
|
+
attributeFilter: ['hidden', 'disabled', 'aria-hidden', 'aria-expanded', 'class'],
|
|
167
|
+
});
|
|
168
|
+
view.addEventListener('resize', schedulePosition);
|
|
169
|
+
document.addEventListener('scroll', schedulePosition, true);
|
|
170
|
+
panel.addEventListener('keydown', handleMenuKeydown, true);
|
|
171
|
+
view.visualViewport?.addEventListener('resize', schedulePosition);
|
|
172
|
+
view.visualViewport?.addEventListener('scroll', schedulePosition);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function restorePresentation() {
|
|
176
|
+
if (!presentation) return;
|
|
177
|
+
if (trigger.textContent === 'More') trigger.textContent = presentation.text;
|
|
178
|
+
for (const name of ['aria-label', 'title', 'data-focused-disclosure']) {
|
|
179
|
+
if (name !== 'data-focused-disclosure' && trigger.getAttribute(name) !== LABEL) continue;
|
|
180
|
+
const value = presentation[name];
|
|
181
|
+
if (value === null) trigger.removeAttribute(name);
|
|
182
|
+
else trigger.setAttribute(name, value);
|
|
183
|
+
}
|
|
184
|
+
presentation = null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function update(state) {
|
|
188
|
+
if (disposed) return;
|
|
189
|
+
enabled = state.enabled;
|
|
190
|
+
open = state.open;
|
|
191
|
+
optionsOpen = state.optionsOpen;
|
|
192
|
+
if (enabled) {
|
|
193
|
+
presentation ||= {
|
|
194
|
+
text: trigger.textContent,
|
|
195
|
+
'aria-label': trigger.getAttribute('aria-label'),
|
|
196
|
+
title: trigger.getAttribute('title'),
|
|
197
|
+
'data-focused-disclosure': trigger.getAttribute('data-focused-disclosure'),
|
|
198
|
+
};
|
|
199
|
+
trigger.textContent = 'More';
|
|
200
|
+
trigger.setAttribute('aria-label', LABEL);
|
|
201
|
+
trigger.title = LABEL;
|
|
202
|
+
trigger.setAttribute('data-focused-disclosure', open ? 'open' : 'closed');
|
|
203
|
+
} else restorePresentation();
|
|
204
|
+
if (enabled && open) {
|
|
205
|
+
startWatching();
|
|
206
|
+
position();
|
|
207
|
+
} else {
|
|
208
|
+
stopWatching();
|
|
209
|
+
clearPosition(panel);
|
|
210
|
+
for (const menuPanel of positionedMenus) clearPosition(menuPanel);
|
|
211
|
+
positionedMenus.clear();
|
|
212
|
+
}
|
|
213
|
+
if (!enabled || !open || !optionsOpen) clearPosition(optionsPanel);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function dispose() {
|
|
217
|
+
if (disposed) return;
|
|
218
|
+
update({ enabled: false, open: false, optionsOpen: false });
|
|
219
|
+
disposed = true;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return { update, dispose };
|
|
223
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
html[data-desktop-shell="focused"] .layout[hidden] { display: none !important; }
|
|
2
|
+
.focused-composer-controls[hidden] { display: none; }
|
|
3
|
+
/* Composer flyouts must clear both the sticky prompt and the floating overview. */
|
|
4
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer { z-index: 15; }
|
|
5
|
+
html[data-desktop-shell="focused"] .control-row:has(#modelSelect),
|
|
6
|
+
html[data-desktop-shell="focused"] .control-row:has(#thinkingSelect),
|
|
7
|
+
html[data-desktop-shell="focused"] #busyPromptBehaviorTag,
|
|
8
|
+
html[data-desktop-shell="focused"] #busyPromptBehaviorMenu { display: none !important; }
|
|
9
|
+
html[data-desktop-shell="focused"] #composerActionsButton { display: inline-flex; }
|
|
10
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-row {
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow-x: clip;
|
|
13
|
+
overflow-y: visible;
|
|
14
|
+
display: grid;
|
|
15
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
16
|
+
align-items: start;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
margin-top: 8px;
|
|
19
|
+
}
|
|
20
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-row > .spacer { display: none; }
|
|
21
|
+
/* Saved action order stays inside More and cannot place the primary action. */
|
|
22
|
+
html[data-desktop-shell="focused"] #focusedWorkspace #composerActionsButton,
|
|
23
|
+
html[data-desktop-shell="focused"] #focusedWorkspace #sendButton {
|
|
24
|
+
grid-row: 1;
|
|
25
|
+
order: 0;
|
|
26
|
+
transform: none;
|
|
27
|
+
width: auto;
|
|
28
|
+
min-height: 34px;
|
|
29
|
+
padding: 5px 14px;
|
|
30
|
+
}
|
|
31
|
+
html[data-desktop-shell="focused"] #focusedWorkspace #composerActionsButton {
|
|
32
|
+
grid-column: 1;
|
|
33
|
+
justify-self: start;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
min-width: 64px;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
}
|
|
38
|
+
html[data-desktop-shell="focused"] #composerActionsButton[data-focused-disclosure]::after {
|
|
39
|
+
content: "";
|
|
40
|
+
width: 6px;
|
|
41
|
+
height: 6px;
|
|
42
|
+
border-right: 2px solid currentColor;
|
|
43
|
+
border-bottom: 2px solid currentColor;
|
|
44
|
+
transform: translateY(-2px) rotate(45deg);
|
|
45
|
+
}
|
|
46
|
+
html[data-desktop-shell="focused"] #composerActionsButton[data-focused-disclosure="open"]::after {
|
|
47
|
+
transform: translateY(2px) rotate(225deg);
|
|
48
|
+
}
|
|
49
|
+
html[data-desktop-shell="focused"] #focusedWorkspace #sendButton {
|
|
50
|
+
grid-column: 2;
|
|
51
|
+
justify-self: end;
|
|
52
|
+
min-width: 96px;
|
|
53
|
+
}
|
|
54
|
+
html[data-desktop-shell="focused"] #composerActionsPanel { display: none; }
|
|
55
|
+
html[data-desktop-shell="focused"] body.composer-actions-open #composerActionsPanel {
|
|
56
|
+
position: fixed;
|
|
57
|
+
z-index: 100;
|
|
58
|
+
inset: var(--focused-flyout-top, 0) auto auto var(--focused-flyout-left, 0);
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-wrap: nowrap;
|
|
61
|
+
grid-column: 2;
|
|
62
|
+
grid-row: 1;
|
|
63
|
+
order: 0;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
width: max-content;
|
|
67
|
+
max-width: var(--focused-flyout-width, calc(100vw - 16px));
|
|
68
|
+
max-height: var(--focused-flyout-max-height, calc(100dvh - 16px));
|
|
69
|
+
gap: .5rem;
|
|
70
|
+
align-items: center;
|
|
71
|
+
overflow-x: auto;
|
|
72
|
+
overflow-y: hidden;
|
|
73
|
+
overscroll-behavior: contain;
|
|
74
|
+
touch-action: pan-x;
|
|
75
|
+
padding: 8px;
|
|
76
|
+
border: 1px solid var(--border);
|
|
77
|
+
border-radius: 10px;
|
|
78
|
+
background: var(--ctp-mantle);
|
|
79
|
+
box-shadow: 0 8px 24px var(--shadow);
|
|
80
|
+
}
|
|
81
|
+
/* Keep saved order and spans without letting saved grid coordinates wrap the row. */
|
|
82
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > [data-composer-action-id] {
|
|
83
|
+
flex: 0 0 auto;
|
|
84
|
+
width: auto;
|
|
85
|
+
min-width: calc(var(--composer-action-grid-span, 1) * var(--composer-action-cell-min-width, 3.2rem));
|
|
86
|
+
grid-column: auto;
|
|
87
|
+
grid-row: auto;
|
|
88
|
+
transform: none;
|
|
89
|
+
touch-action: pan-x;
|
|
90
|
+
}
|
|
91
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-publish-menu {
|
|
92
|
+
position: static;
|
|
93
|
+
isolation: auto;
|
|
94
|
+
}
|
|
95
|
+
/* Fixed descendants escape the row's scroll clip while keeping native event ancestry. */
|
|
96
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-publish-menu > .composer-publish-menu-panel {
|
|
97
|
+
position: fixed;
|
|
98
|
+
z-index: 101;
|
|
99
|
+
inset: var(--focused-flyout-top, 0) auto auto var(--focused-flyout-left, 0);
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
width: var(--focused-flyout-width, 14rem);
|
|
102
|
+
min-width: 0;
|
|
103
|
+
max-width: calc(100vw - 16px);
|
|
104
|
+
max-height: var(--focused-flyout-max-height, calc(100dvh - 16px));
|
|
105
|
+
overflow: auto;
|
|
106
|
+
overscroll-behavior: contain;
|
|
107
|
+
padding: 6px;
|
|
108
|
+
border: 1px solid var(--border);
|
|
109
|
+
border-radius: 8px;
|
|
110
|
+
background: var(--ctp-mantle);
|
|
111
|
+
box-shadow: 0 8px 24px var(--shadow);
|
|
112
|
+
}
|
|
113
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-publish-menu .composer-publish-menu-item {
|
|
114
|
+
width: 100%;
|
|
115
|
+
min-width: 0;
|
|
116
|
+
max-width: 100%;
|
|
117
|
+
white-space: normal;
|
|
118
|
+
}
|
|
119
|
+
/* The conversation clips sideways flyouts, so keep nested Options in one scroll area. */
|
|
120
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-options-submenu { flex-direction: column; }
|
|
121
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-options-submenu-panel {
|
|
122
|
+
position: static;
|
|
123
|
+
max-height: none;
|
|
124
|
+
padding-top: 6px;
|
|
125
|
+
overflow: visible;
|
|
126
|
+
}
|
|
127
|
+
/* With room beside the menu, app.js places an open submenu as a fixed flyout instead. */
|
|
128
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-options-submenu-panel.options-submenu-flyout {
|
|
129
|
+
position: fixed;
|
|
130
|
+
z-index: 130;
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
padding: 6px;
|
|
133
|
+
overflow-x: hidden;
|
|
134
|
+
overflow-y: auto;
|
|
135
|
+
overscroll-behavior: contain;
|
|
136
|
+
border: 1px solid var(--border);
|
|
137
|
+
border-radius: 8px;
|
|
138
|
+
background: var(--ctp-mantle);
|
|
139
|
+
box-shadow: 0 8px 24px var(--shadow);
|
|
140
|
+
}
|
|
141
|
+
html[data-desktop-shell="focused"] #composerActionsPanel[hidden],
|
|
142
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-options-menu-panel[hidden],
|
|
143
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .composer-options-submenu-panel[hidden] { display: none; }
|
|
144
|
+
@media (pointer: coarse) {
|
|
145
|
+
/* Touch styles size the chat to the viewport; the focused header needs room too. */
|
|
146
|
+
html[data-desktop-shell="focused"] #focusedWorkspace .chat-panel { height: 100%; max-height: 100%; }
|
|
147
|
+
html[data-desktop-shell="focused"] #focusedWorkspace #composerActionsButton,
|
|
148
|
+
html[data-desktop-shell="focused"] #focusedWorkspace #sendButton { min-height: 44px; }
|
|
149
|
+
}
|
|
150
|
+
html[data-desktop-shell="focused"] .side-panel-section-content { min-width: 0; }
|
|
151
|
+
html[data-desktop-shell="focused"] .side-panel-controls { display: grid; gap: 16px; }
|
|
152
|
+
html[data-desktop-shell="focused"] #focusedWorkspace { height: var(--visual-viewport-height, 100dvh); }
|
|
153
|
+
/* Preserve focus-driven scroll recovery when short windows fill with suggestions. */
|
|
154
|
+
#focusedWorkspace .chat-panel { display: flex; flex-direction: column; overflow: hidden; }
|
|
155
|
+
#focusedWorkspace .terminal-tabs-shell { display: flex; flex-direction: column; align-items: stretch; height: 100%; min-height: 0; }
|
|
156
|
+
#focusedWorkspace .terminal-tabs-drawer-content { display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; }
|
|
157
|
+
#focusedWorkspace .terminal-tabs { flex: 1; display: flex; flex-direction: column; align-items: stretch; overflow: auto; max-height: none; }
|
|
158
|
+
#focusedWorkspace .terminal-tab { flex: 0 0 auto; min-width: 0; width: 100%; max-width: none; }
|
|
159
|
+
#focusedWorkspace .terminal-tab-group-menu { position: static; display: flex; width: 100%; min-width: 0; max-width: 100%; max-height: none; padding: 4px 0 0; overflow: visible; }
|
|
160
|
+
#focusedWorkspace .terminal-tab-group { display: flex; flex-direction: column; }
|
|
161
|
+
#focusedWorkspace .terminal-tab-group-item { border-radius: 5px; box-shadow: none; }
|
|
162
|
+
#focusedWorkspace .terminal-sidebar-actions { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
163
|
+
#focusedWorkspace .terminal-sidebar-actions > button { flex: 1 1 32px; min-width: 32px; max-width: 38px; width: 32px; padding-inline: 6px; }
|
|
164
|
+
#focusedWorkspace .terminal-tabs button { min-height: 30px; padding-block: 4px; box-shadow: none; }
|
|
165
|
+
#focusedWorkspace .terminal-close-all-button { font-size: 11px; min-height: 28px; }
|
|
166
|
+
#focusedWorkspace[data-navigation="top"] .terminal-tabs-shell,
|
|
167
|
+
#focusedWorkspace[data-navigation="top"] .terminal-tabs-drawer-content,
|
|
168
|
+
#focusedWorkspace[data-navigation="top"] .terminal-tabs { flex-direction: row; height: auto; align-items: center; }
|
|
169
|
+
#focusedWorkspace[data-navigation="top"] .terminal-tab { width: auto; min-width: 180px; }
|
|
170
|
+
#focusedWorkspace[data-navigation="top"] .terminal-tab-group-menu { max-height: 100px; overflow: auto; }
|
|
171
|
+
|
|
172
|
+
.focused-modal-run-controls { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
173
|
+
.focused-modal-run-controls:has(> button:not([hidden])) { padding-block: 8px; border-top: 1px solid var(--border); }
|
|
174
|
+
|
|
175
|
+
#focusedWorkspace .composer-row > button { min-height: 34px; padding-block: 5px; }
|
|
176
|
+
#focusedWorkspace .terminal-tab-actions { flex: 0 0 40px; min-width: 40px; flex-direction: row; }
|
|
177
|
+
#focusedWorkspace .terminal-tab-close { flex-basis: 22px; min-width: 22px; padding-inline: 3px; }
|
|
178
|
+
#focusedWorkspace .terminal-tab-actions > button { min-height: 28px; }
|
|
179
|
+
#focusedWorkspace .terminal-tab-button { padding: 5px 7px; }
|
|
180
|
+
#focusedWorkspace .terminal-tab-title { font-size: 12px; letter-spacing: normal; }
|
|
181
|
+
|
|
182
|
+
.focused-artifacts-host { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; }
|
|
183
|
+
.focused-artifacts-host > .document-artifact-content { flex: 1; min-height: 0; }
|
|
184
|
+
.focused-artifact-empty { flex: 0 0 auto; margin: 0; padding: 1rem; }
|
|
185
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
|
|
186
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-sidebar { display: flex; overflow-x: auto; max-height: 6rem; border-right: 0; border-bottom: 1px solid var(--ctp-surface0); }
|
|
187
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-thumbnail { flex: 0 0 4.5rem; padding: .25rem; }
|
|
188
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-thumbnail img { height: 2.75rem; object-fit: contain; }
|
|
189
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-toolbar { position: static; padding: 0; gap: .25rem; }
|
|
190
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-stage { padding: .5rem; }
|
|
191
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-header { padding: .5rem; flex-wrap: wrap; }
|
|
192
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-search { min-width: 0; width: 100%; }
|
|
193
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-semantic { min-width: 0; max-width: 100%; }
|
|
194
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-thumbnail span { white-space: nowrap; }
|
|
195
|
+
#focusedWorkspace .focused-artifacts-host .document-artifact-toolbar button { min-height: 1.75rem; padding: .3rem .45rem; font-size: var(--text-xs); }
|
|
196
|
+
|
|
197
|
+
#focusedWorkspace .focused-feature-host { min-width: 0; padding: .6rem; }
|
|
198
|
+
#focusedWorkspace .focused-feature-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .6rem; }
|
|
199
|
+
#focusedWorkspace .focused-feature-controls .composer-publish-menu-panel { display: flex; position: static; flex: 1 1 100%; flex-direction: column; min-width: 0; max-width: 100%; width: 100%; max-height: none; box-shadow: none; border: 0; padding: 0; background: transparent; transform: none; }
|
|
200
|
+
#focusedWorkspace .focused-feature-controls .composer-publish-menu-item { min-width: 0; width: 100%; white-space: normal; }
|
|
201
|
+
#focusedWorkspace .focused-feature-widgets { min-width: 0; }
|
|
202
|
+
#focusedWorkspace .focused-feature-widgets > * { min-width: 0; max-width: 100%; }
|
|
203
|
+
#focusedWorkspace .focused-feature-widgets .release-npm-output-details { min-width: 0; }
|
|
204
|
+
#focusedWorkspace .focused-feature-empty { font-size: var(--text-xs); line-height: 1.5; }
|
|
205
|
+
|
|
206
|
+
#focusedWorkspace .focused-feature-controls .composer-app-runner-info-button { position: static; opacity: 1; pointer-events: auto; transform: none; }
|
|
207
|
+
#focusedWorkspace .focused-feature-widgets .app-runner-stdin-form { display: grid; grid-template-columns: 1fr auto; }
|
|
208
|
+
#focusedWorkspace .focused-feature-widgets .app-runner-stdin-input { grid-column: 1 / -1; width: 100%; }
|
|
209
|
+
#focusedWorkspace .focused-conversation-link { width: 100%; min-width: 0; white-space: normal; text-align: left; }
|
|
210
|
+
|
|
211
|
+
#focusedWorkspace .focused-feature-widgets .btw-widget .release-npm-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: start; }
|
|
212
|
+
#focusedWorkspace .focused-feature-widgets .btw-widget .release-npm-meta { min-width: 0; max-width: 100%; }
|
|
213
|
+
#focusedWorkspace .focused-feature-widgets .btw-widget .release-npm-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; min-width: 0; }
|
|
214
|
+
#focusedWorkspace .focused-feature-widgets .btw-widget .release-npm-actions button { max-width: 100%; white-space: normal; }
|
|
215
|
+
|
|
216
|
+
/* The compact inspector owns panel navigation; Classic keeps its floating controls. */
|
|
217
|
+
html[data-desktop-shell="focused"] .side-panel-expand-button { display: none !important; }
|
|
218
|
+
|
|
219
|
+
.focused-inbox-button { position: relative; }
|
|
220
|
+
.focused-inbox-button .focused-attention { position: static; }
|
|
221
|
+
.focused-finished { color: var(--muted); font-size: 11px; }
|
|
222
|
+
.focused-inbox-button [hidden] { display: none; }
|
|
223
|
+
|
|
224
|
+
#focusedWorkspace .terminal-tab-settlement-button { color: var(--ctp-teal); padding-inline: 2px; border: 0; border-radius: 3px; background: transparent; }
|
|
225
|
+
#focusedWorkspace .terminal-tab-settlement-button:disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }
|
|
226
|
+
#focusedWorkspace .terminal-tab-settlement-button:not(:disabled):hover { background: var(--hover-bg, rgba(148, 226, 213, .15)); }
|
|
227
|
+
#focusedWorkspace .terminal-tab-settlement-button:focus-visible { outline: 2px solid var(--ctp-teal); outline-offset: -2px; }
|
|
228
|
+
#focusedWorkspace .has-session-shelves .terminal-tab-group-menu[hidden] { display: none; }
|
|
229
|
+
#focusedWorkspace[data-navigation="left"] .focused-navigation,
|
|
230
|
+
#focusedWorkspace[data-navigation="left"] .terminal-tabs {
|
|
231
|
+
scrollbar-width: none;
|
|
232
|
+
scrollbar-gutter: auto;
|
|
233
|
+
}
|
|
234
|
+
#focusedWorkspace[data-navigation="left"] .focused-navigation::-webkit-scrollbar,
|
|
235
|
+
#focusedWorkspace[data-navigation="left"] .terminal-tabs::-webkit-scrollbar { display: none; }
|
|
236
|
+
|
|
237
|
+
#focusedWorkspace .terminal-settings-button { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; min-height: 38px; padding: 8px; }
|
|
238
|
+
#focusedWorkspace .terminal-settings-button[hidden] { display: none; }
|
|
239
|
+
#focusedWorkspace .terminal-settings-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
240
|
+
#focusedWorkspace .terminal-settings-button[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
|
|
241
|
+
|
|
242
|
+
/* These controls move out of the input frame when More opens. */
|
|
243
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-workflow-mode-dock,
|
|
244
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-context-tags {
|
|
245
|
+
flex: 0 0 auto;
|
|
246
|
+
position: relative;
|
|
247
|
+
inset: auto;
|
|
248
|
+
width: auto;
|
|
249
|
+
max-width: 100%;
|
|
250
|
+
margin: 0;
|
|
251
|
+
transform: none;
|
|
252
|
+
}
|
|
253
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-context-tags {
|
|
254
|
+
grid-column: 1 / -1;
|
|
255
|
+
flex-wrap: nowrap;
|
|
256
|
+
}
|
|
257
|
+
html[data-desktop-shell="focused"] #composerActionsPanel .composer-workflow-overlay-open-button {
|
|
258
|
+
position: static;
|
|
259
|
+
margin: 0;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
html[data-desktop-shell="focused"] #composerActionsPanel > .composer-workflow-mode-dock.has-open-control {
|
|
263
|
+
grid-column: span 2;
|
|
264
|
+
}
|