Skip to content

Commit 46ce849

Browse files
ui(editor): 调整触摸设备上的 PromptEditor 按钮位置
- 将按钮位置从顶部 60% 调整到底部 10% - 改进在触摸设备上的可用性和用户体验
1 parent 2156da1 commit 46ce849

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/editor/PromptEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const PromptEditor = forwardRef<PromptEditorRef, PromptEditorProps>(
236236
}}
237237
/>
238238
{isTouchDevice && (
239-
<div className="absolute right-5 top-[60%] flex flex-col gap-3 p-2 bg-white/20 backdrop-blur-md rounded-2xl shadow-xl z-50">
239+
<div className="absolute right-5 bottom-[10%] flex flex-col gap-3 p-2 bg-white/20 backdrop-blur-md rounded-2xl shadow-xl z-50">
240240
<button
241241
onClick={handleSelectAll}
242242
className="p-3 text-gray-600 bg-white/40 rounded-xl transition-all active:scale-95 shadow-sm"

0 commit comments

Comments
 (0)