mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-26 17:09:28 +08:00
style(panel): remove redundant window control dots from capsule preview bar
This commit is contained in:
@@ -222,11 +222,6 @@ export const CapsuleBarWidget = defineComponent({
|
||||
]
|
||||
);
|
||||
|
||||
const titlebarRightMock = h('div', { className: 'preview-win-controls', 'aria-hidden': 'true' }, [
|
||||
h('span', { className: 'preview-win-dot' }),
|
||||
h('span', { className: 'preview-win-dot' }),
|
||||
h('span', { className: 'preview-win-dot' }),
|
||||
]);
|
||||
const composerSendMock = h(
|
||||
'span',
|
||||
{ className: 'preview-composer-send', 'aria-hidden': 'true', hidden: true },
|
||||
@@ -236,7 +231,7 @@ export const CapsuleBarWidget = defineComponent({
|
||||
const hostBarEl = h(
|
||||
'div',
|
||||
{ className: 'preview-capsule-bar', 'data-mount-mode': 'dual' },
|
||||
[titlebarLeftMock, composerLeftMock, capsuleCluster, titlebarRightMock, composerSendMock]
|
||||
[titlebarLeftMock, composerLeftMock, capsuleCluster, composerSendMock]
|
||||
);
|
||||
|
||||
const sidebarHintEl = h('div', {
|
||||
@@ -265,7 +260,6 @@ export const CapsuleBarWidget = defineComponent({
|
||||
});
|
||||
|
||||
patchAttr(titlebarLeftMock, 'hidden', isComposer);
|
||||
patchAttr(titlebarRightMock, 'hidden', isComposer);
|
||||
patchAttr(composerLeftMock, 'hidden', !isComposer);
|
||||
patchAttr(composerSendMock, 'hidden', !isComposer);
|
||||
patchAttr(sidebarHintEl, 'hidden', !isSidebar);
|
||||
|
||||
@@ -368,21 +368,6 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.preview-win-controls {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding-left: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.preview-win-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: color-mix(in srgb, var(--text-secondary) 26%, transparent);
|
||||
}
|
||||
|
||||
.preview-composer-send {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user