fix(webui): fit session search above the mobile keyboard

This commit is contained in:
Xubin Ren committed 2026-10-04 20:14:21 +08:00
1 parent fc729df9ab
commit 2442d88b91
6 files changed
+38 -21

No files matched your search

+6 -1
View File
@@ -41,7 +41,12 @@ const DialogPositionedContent = React.forwardRef<
placement?: "center" | "bottom";
}
>(({ positionerStyle, placement, ...props }, ref) => (
<div className={cn("fixed inset-0 z-50 flex justify-center", placement === "bottom" ? "items-end" : "items-center p-4")} style={positionerStyle}>
<div className={cn("fixed inset-0 z-50 flex justify-center", placement === "bottom" ? "items-end" : "items-center p-4")} style={{
top: "var(--app-viewport-top, 0px)",
height: "var(--app-viewport-height, 100%)",
bottom: "auto",
...positionerStyle,
}}>
<DialogPrimitive.Content ref={ref} {...props} />
</div>
));