fix(webui): fit session search above the mobile keyboard
This commit is contained in:
1 parent
fc729df9ab
commit
2442d88b91
6 files changed
+38
-21
No files matched your search
@@ -140,7 +140,7 @@ export function SessionSearchDialog({
|
||||
<DialogContent
|
||||
showCloseButton={false}
|
||||
className={cn(
|
||||
"flex max-h-[min(40rem,calc(100vh-2rem))] w-[calc(100vw-2rem)] max-w-[42rem] flex-col gap-0 overflow-hidden p-0",
|
||||
"flex max-h-[min(40rem,100%)] w-[calc(100vw-2rem)] max-w-[42rem] flex-col gap-0 overflow-hidden p-0",
|
||||
)}
|
||||
>
|
||||
<DialogTitle className="sr-only">{t("sidebar.searchAria")}</DialogTitle>
|
||||
|
||||
@@ -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>
|
||||
));
|
||||
|
||||
Reference in new issue
Block a user