优化 UI 编辑器复制反馈布局
将复制失败提示与操作按钮分离排列
This commit is contained in:
+10
-8
@@ -55,15 +55,17 @@ function GeneratedNotice({
|
||||
<code className="mt-2 block select-text break-all rounded-lg bg-black/5 px-3 py-2 text-xs leading-5">
|
||||
{relativePath}
|
||||
</code>
|
||||
<div className="mt-5 flex flex-wrap justify-end gap-2">
|
||||
<div className="mt-5">
|
||||
<UiEditorCopyPathButton relativePath={relativePath} />
|
||||
<button
|
||||
type="button"
|
||||
className="rounded-lg bg-orange-600 px-3 py-2 text-xs font-semibold text-white"
|
||||
onClick={onClose}
|
||||
>
|
||||
关闭
|
||||
</button>
|
||||
<div className="mt-3 flex justify-end">
|
||||
<button
|
||||
type="button"
|
||||
className="rounded-lg bg-orange-600 px-3 py-2 text-xs font-semibold text-white"
|
||||
onClick={onClose}
|
||||
>
|
||||
关闭
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user