mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 23:06:36 +08:00
fix(waf): 规则编辑器返回按钮对齐 websites 详情样式
This commit is contained in:
@@ -196,13 +196,16 @@ function EditorContent() {
|
|||||||
return (
|
return (
|
||||||
<div className='flex h-[calc(100dvh-8rem)] w-full flex-col px-1 py-6'>
|
<div className='flex h-[calc(100dvh-8rem)] w-full flex-col px-1 py-6'>
|
||||||
<UnsavedChanges dirty={dirty} />
|
<UnsavedChanges dirty={dirty} />
|
||||||
<header className='mb-4 flex flex-col gap-3'>
|
<header className='mb-4 flex flex-col gap-4'>
|
||||||
<div>
|
<Button
|
||||||
<Button variant='outline' size='sm' onClick={leave}>
|
variant='ghost'
|
||||||
<ArrowLeft data-icon='inline-start' />
|
size='sm'
|
||||||
返回规则组
|
className='h-8 w-fit gap-1.5 px-0 text-xs'
|
||||||
</Button>
|
onClick={leave}
|
||||||
</div>
|
>
|
||||||
|
<ArrowLeft className='size-3.5' />
|
||||||
|
返回
|
||||||
|
</Button>
|
||||||
<div className='flex items-center justify-between gap-4'>
|
<div className='flex items-center justify-between gap-4'>
|
||||||
<div className='flex min-w-0 items-center gap-2'>
|
<div className='flex min-w-0 items-center gap-2'>
|
||||||
<GitBranch className='size-5 text-primary' />
|
<GitBranch className='size-5 text-primary' />
|
||||||
@@ -251,8 +254,7 @@ function EditorContent() {
|
|||||||
disabled={!graph}
|
disabled={!graph}
|
||||||
onClick={formatLayout}
|
onClick={formatLayout}
|
||||||
>
|
>
|
||||||
<AlignHorizontalSpaceAround data-icon='inline-start' />
|
格式化
|
||||||
格式化布局
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
disabled={!dirty || issues.length > 0 || saveMutation.isPending}
|
disabled={!dirty || issues.length > 0 || saveMutation.isPending}
|
||||||
|
|||||||
Reference in New Issue
Block a user