mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
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:
parent
d6d42c3600
commit
be09fe92da
1 changed files with 6 additions and 7 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue