Spaces:
Running

axeronis commited on
Commit
13542ec
·
1 Parent(s): ab259b7

fix(mobile): phase 4 polish - toggle, scroll, voice, modal

Browse files
frontend/components/ChatWindow/ChatHeader.tsx CHANGED
@@ -108,8 +108,8 @@ export function ChatHeader({
108
  className={cn(
109
  "relative w-12 h-6 rounded-full transition-all duration-300 flex-shrink-0 border",
110
  isAIActive
111
- ? "bg-indigo-500 border-indigo-400 shadow-[0_0_15px_rgba(99,102,241,0.3)]"
112
- : "bg-white/10 border-white/10 hover:bg-white/20",
113
  isTogglingAI && "opacity-80"
114
  )}
115
  title={isAIActive ? 'AI Активен' : 'AI Отключен'}
 
108
  className={cn(
109
  "relative w-12 h-6 rounded-full transition-all duration-300 flex-shrink-0 border",
110
  isAIActive
111
+ ? "bg-indigo-600 border-indigo-500 shadow-[0_0_15px_rgba(99,102,241,0.4)]"
112
+ : "bg-slate-700 border-slate-600",
113
  isTogglingAI && "opacity-80"
114
  )}
115
  title={isAIActive ? 'AI Активен' : 'AI Отключен'}
frontend/components/ChatWindow/MessageInput.tsx CHANGED
@@ -161,8 +161,8 @@ export function MessageInput({
161
  }
162
 
163
  return (
164
- // Adjusted padding: pb-6 (safe area) + bottom nav is distinct
165
- <div className="px-2 sm:px-3 pb-6 md:pb-6 pt-2 bg-[#050510]/60 backdrop-blur-xl border-t border-white/5 flex-shrink-0 relative z-30">
166
  <div className="max-w-4xl mx-auto relative">
167
  {/* File Preview */}
168
  {selectedFile && (
 
161
  }
162
 
163
  return (
164
+ // Adjusted padding: pb-[calc(60px+safe-area)] to clear bottom nav explicitly since we removed Layout padding
165
+ <div className="px-2 sm:px-3 pb-[calc(60px+env(safe-area-inset-bottom,20px))] md:pb-6 pt-2 bg-[#050510]/60 backdrop-blur-xl border-t border-white/5 flex-shrink-0 relative z-30">
166
  <div className="max-w-4xl mx-auto relative">
167
  {/* File Preview */}
168
  {selectedFile && (
frontend/components/layout/LayoutClient.tsx CHANGED
@@ -95,7 +95,7 @@ export function LayoutClient({ children }: { children: React.ReactNode }) {
95
  className="w-full h-full"
96
  style={{
97
  paddingTop: 'var(--header-height-mobile)',
98
- paddingBottom: 'var(--footer-height-mobile)'
99
  }}
100
  >
101
  {children}
 
95
  className="w-full h-full"
96
  style={{
97
  paddingTop: 'var(--header-height-mobile)',
98
+ paddingBottom: pathname?.startsWith('/chats') ? '0px' : 'var(--footer-height-mobile)'
99
  }}
100
  >
101
  {children}
frontend/components/ui/ImageViewer.tsx CHANGED
@@ -60,7 +60,7 @@ export function ImageViewer({ src, alt, isOpen, onClose }: ImageViewerProps) {
60
  animate={{ opacity: 1 }}
61
  exit={{ opacity: 0 }}
62
  transition={{ duration: 0.2 }}
63
- className="fixed inset-0 z-[9999] bg-black/95 backdrop-blur-md flex flex-col touch-none"
64
  onClick={onClose}
65
  >
66
  {/* Header Controls */}
 
60
  animate={{ opacity: 1 }}
61
  exit={{ opacity: 0 }}
62
  transition={{ duration: 0.2 }}
63
+ className="fixed inset-0 z-[99999] bg-black/95 backdrop-blur-md flex flex-col touch-none"
64
  onClick={onClose}
65
  >
66
  {/* Header Controls */}