mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-05 22:17:42 +00:00
fix: pwa mode and mobile safe area padding
This commit is contained in:
@@ -50,7 +50,7 @@ export default function SidebarContent({
|
||||
return (
|
||||
<div
|
||||
className="h-full flex flex-col bg-background/80 backdrop-blur-sm md:select-none md:w-72"
|
||||
style={isPWA && isMobile ? { paddingTop: '44px' } : {}}
|
||||
style={{}}
|
||||
>
|
||||
<SidebarHeader
|
||||
isPWA={isPWA}
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function SidebarFooter({
|
||||
t,
|
||||
}: SidebarFooterProps) {
|
||||
return (
|
||||
<div className="flex-shrink-0">
|
||||
<div className="flex-shrink-0" style={{ paddingBottom: 'env(safe-area-inset-bottom, 0)' }}>
|
||||
{/* Update banner */}
|
||||
{updateAvailable && (
|
||||
<>
|
||||
|
||||
@@ -49,7 +49,7 @@ export default function SidebarHeader({
|
||||
{/* Desktop header */}
|
||||
<div
|
||||
className="hidden md:block px-3 pt-3 pb-2"
|
||||
style={isPWA && isMobile ? { paddingTop: '44px' } : {}}
|
||||
style={{}}
|
||||
>
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
{IS_PLATFORM ? (
|
||||
|
||||
Reference in New Issue
Block a user