mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-21 16:17:34 +00:00
fix: pwa mode and mobile safe area padding
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import { useAuth } from '../contexts/AuthContext';
|
||||
import ClaudeLogo from './ClaudeLogo';
|
||||
|
||||
const SetupForm = () => {
|
||||
const [username, setUsername] = useState('');
|
||||
const [password, setPassword] = useState('');
|
||||
@@ -48,7 +46,7 @@ const SetupForm = () => {
|
||||
{/* Logo and Title */}
|
||||
<div className="text-center">
|
||||
<div className="flex justify-center mb-4">
|
||||
<ClaudeLogo size={64} />
|
||||
<img src="/logo.svg" alt="CloudCLI" className="w-16 h-16" />
|
||||
</div>
|
||||
<h1 className="text-2xl font-bold text-foreground">Welcome to Claude Code UI</h1>
|
||||
<p className="text-muted-foreground mt-2">
|
||||
|
||||
@@ -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