Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pac
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tools
pac
Commits
8217f5ab
Commit
8217f5ab
authored
Jul 18, 2026
by
luoqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(web): 助手最大化占满窗口(inset-3,不写死宽高)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
parent
1e1d5ac9
Pipeline
#3385
failed in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
apps/pac-web/src/components/assistant/assistant-widget.tsx
+1
-1
No files found.
apps/pac-web/src/components/assistant/assistant-widget.tsx
View file @
8217f5ab
...
@@ -58,7 +58,7 @@ export function AssistantWidget() {
...
@@ -58,7 +58,7 @@ export function AssistantWidget() {
'fixed z-[60] flex flex-col overflow-hidden rounded-xl border border-slate-100 shadow-2xl'
,
'fixed z-[60] flex flex-col overflow-hidden rounded-xl border border-slate-100 shadow-2xl'
,
'transition-[opacity,transform] duration-150'
,
'transition-[opacity,transform] duration-150'
,
maximized
maximized
?
'inset-
0 m-auto h-[min(88vh,900px)] w-[min(1000px,94vw)]'
// 居中放大(margin:auto 定宽高居中)
?
'inset-
3'
// 最大化:填满窗口(留 12px 边距),不写死宽高,随窗口自适应
:
cn
(
!
winRect
&&
'bottom-4 right-4'
,
'h-[620px] max-h-[78vh] w-[400px] max-w-[calc(100vw-2rem)]'
),
:
cn
(
!
winRect
&&
'bottom-4 right-4'
,
'h-[620px] max-h-[78vh] w-[400px] max-w-[calc(100vw-2rem)]'
),
open
?
'translate-y-0 opacity-100'
:
'pointer-events-none invisible translate-y-2 opacity-0'
,
open
?
'translate-y-0 opacity-100'
:
'pointer-events-none invisible translate-y-2 opacity-0'
,
)
}
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment