fix(position-roundtable): align header controls
This commit is contained in:
1 parent
85e119db08
commit
783774d3f3
1 file changed
+12
-16
@@ -448,8 +448,8 @@ export default function PositionRoundtablePage() {
|
|||||||
isDark && "roundtable-planning--dark",
|
isDark && "roundtable-planning--dark",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<header className="z-10 flex h-16 shrink-0 items-center justify-between gap-4 border-b border-slate-200 bg-white px-5 shadow-sm dark:border-[#2b8ffe]/45 dark:bg-[#032650]/85">
|
<header className="z-10 flex h-16 shrink-0 items-center justify-between gap-3 border-b border-slate-200 bg-white px-5 shadow-sm dark:border-[#2b8ffe]/45 dark:bg-[#032650]/85">
|
||||||
<div className="flex min-w-0 items-center gap-3">
|
<div className="flex min-w-0 flex-1 items-center gap-3">
|
||||||
<span className="flex size-9 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary">
|
<span className="flex size-9 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary">
|
||||||
<UserRoundCog className="size-5" />
|
<UserRoundCog className="size-5" />
|
||||||
</span>
|
</span>
|
||||||
@@ -477,11 +477,14 @@ export default function PositionRoundtablePage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex shrink-0 items-center gap-2">
|
||||||
<div className="hidden items-center gap-2 lg:flex">
|
<div className="hidden shrink-0 items-center gap-2 lg:flex">
|
||||||
<span className="text-xs font-medium text-muted-foreground">模拟任务</span>
|
<span className="shrink-0 whitespace-nowrap text-xs font-medium text-muted-foreground">
|
||||||
|
模拟任务
|
||||||
|
</span>
|
||||||
<TSelect
|
<TSelect
|
||||||
className="w-[240px]"
|
className="w-[240px]"
|
||||||
|
style={{ width: 240, minWidth: 240, flex: "0 0 240px" }}
|
||||||
value={task.id}
|
value={task.id}
|
||||||
options={MOCK_POSITION_TASKS.map((mockTask) => ({
|
options={MOCK_POSITION_TASKS.map((mockTask) => ({
|
||||||
label: mockTask.title,
|
label: mockTask.title,
|
||||||
@@ -493,6 +496,7 @@ export default function PositionRoundtablePage() {
|
|||||||
<TButton
|
<TButton
|
||||||
size="small"
|
size="small"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
className="shrink-0 whitespace-nowrap"
|
||||||
icon={<Plus className="size-3.5" />}
|
icon={<Plus className="size-3.5" />}
|
||||||
onClick={handleCreateNewSession}
|
onClick={handleCreateNewSession}
|
||||||
>
|
>
|
||||||
@@ -502,17 +506,19 @@ export default function PositionRoundtablePage() {
|
|||||||
<TButton
|
<TButton
|
||||||
size="small"
|
size="small"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
className="shrink-0 whitespace-nowrap"
|
||||||
icon={<Archive className="size-3.5" />}
|
icon={<Archive className="size-3.5" />}
|
||||||
onClick={handleArchiveSession}
|
onClick={handleArchiveSession}
|
||||||
>
|
>
|
||||||
归档
|
归档
|
||||||
</TButton>
|
</TButton>
|
||||||
)}
|
)}
|
||||||
<span className="hidden text-xs font-medium text-muted-foreground sm:inline">
|
<span className="hidden shrink-0 whitespace-nowrap text-xs font-medium text-muted-foreground sm:inline">
|
||||||
当前岗位
|
当前岗位
|
||||||
</span>
|
</span>
|
||||||
<TSelect
|
<TSelect
|
||||||
className="w-[210px]"
|
className="w-[210px]"
|
||||||
|
style={{ width: 210, minWidth: 210, flex: "0 0 210px" }}
|
||||||
value={positionId}
|
value={positionId}
|
||||||
options={POSITIONS.map((position) => ({
|
options={POSITIONS.map((position) => ({
|
||||||
label: position.name,
|
label: position.name,
|
||||||
@@ -726,11 +732,6 @@ function TaskInformationCard({ task }: { task: PositionTask }) {
|
|||||||
<h2 className="text-sm font-semibold tracking-wide text-slate-900 dark:text-[#e8edf5]">
|
<h2 className="text-sm font-semibold tracking-wide text-slate-900 dark:text-[#e8edf5]">
|
||||||
任务信息
|
任务信息
|
||||||
</h2>
|
</h2>
|
||||||
{task.source === "mock" && (
|
|
||||||
<span className="ml-auto rounded-full bg-violet-500/10 px-2 py-0.5 text-[10px] font-semibold text-violet-700 dark:text-violet-300">
|
|
||||||
模拟数据
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-3">
|
<div className="space-y-3">
|
||||||
<div>
|
<div>
|
||||||
@@ -757,11 +758,6 @@ function TaskInformationCard({ task }: { task: PositionTask }) {
|
|||||||
{desensitize(task.direction)}
|
{desensitize(task.direction)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{task.id && (
|
|
||||||
<p className="truncate border-t border-slate-100 pt-2 text-[10px] text-slate-400 dark:border-[#2b8ffe]/20 dark:text-[#7595be]">
|
|
||||||
#{task.id}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user