fix: keep settings/handoff/avatar buttons fixed to the right in project header (#3279)

Move the three buttons (settings, handoff, avatar) from fileActionsBefore
to the actions slot so they always stay pinned to the right edge of the
header, regardless of how many extra controls (Share, Present, etc.) are
injected via portal during HTML preview.

Co-authored-by: qiongyu1999 <2694684348@qq.com>
Co-authored-by: Claude Opus 4 <noreply@anthropic.com>
This commit is contained in:
elihahah666 2026-05-29 15:33:57 +08:00 committed by GitHub
parent d6d42c3600
commit be09fe92da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4272,6 +4272,12 @@ export function ProjectView({
onBack={onBack}
backLabel={t('project.backToProjects')}
fileActionsBefore={(
<div
className="app-chrome-file-actions-before workspace-tabs-file-actions"
data-app-chrome-file-actions="true"
/>
)}
actions={(
<>
<button
type="button"
@ -4299,15 +4305,8 @@ export function ProjectView({
onRefreshAgents={onRefreshAgents}
onBack={onBack}
/>
<div
className="app-chrome-file-actions-before workspace-tabs-file-actions"
data-app-chrome-file-actions="true"
/>
</>
)}
actions={(
null
)}
>
<div className="app-project-title">
<span className="app-project-title-line">