Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions app/frontend/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ const Footer: React.FC<FooterProps> = ({ className }) => {
// Check if we should hide the footer
const shouldHideFooter = location.pathname === "/chat";

// Determine footer positioning classes based on page and screen size
const getFooterLeftClass = () => {
const hasLeftPanel = ["/image-generation", "/chat"].includes(
location.pathname
);

if (!hasLeftPanel) return "left-0";

if (location.pathname === "/chat") {
return "left-0 md:left-16";
}

return "left-16";
};

// Fetch system status from API
const fetchSystemStatus = async () => {
try {
Expand Down Expand Up @@ -579,7 +594,7 @@ Add any other context about the problem here.
if (loading) {
return shouldHideFooter ? null : (
<motion.footer
className={`fixed bottom-0 left-0 right-0 z-40 ${bgColor} backdrop-blur-sm border-t ${borderColor} ${className}`}
className={`fixed bottom-0 ${getFooterLeftClass()} right-0 z-40 ${bgColor} backdrop-blur-sm border-t ${borderColor} ${className}`}
initial={{ y: 100 }}
animate={{ y: 0 }}
transition={{ type: "spring", stiffness: 300, damping: 30 }}
Expand All @@ -606,7 +621,7 @@ Add any other context about the problem here.
return shouldHideFooter ? null : (
<>
<motion.footer
className={`fixed bottom-0 left-0 right-0 z-40 ${bgColor} backdrop-blur-sm border-t ${borderColor} ${className}`}
className={`fixed bottom-0 ${getFooterLeftClass()} right-0 z-40 ${bgColor} backdrop-blur-sm border-t ${borderColor} ${className}`}
initial={{ y: 100 }}
animate={{ y: 0 }}
transition={{ type: "spring", stiffness: 300, damping: 30 }}
Expand Down Expand Up @@ -789,7 +804,7 @@ Add any other context about the problem here.
</div>

{/* Right Section - System Resources & Controls */}
<div className="flex items-center space-x-6">
<div className="flex items-center space-x-2">
<span className={`text-sm ${mutedTextColor}`}>
SYSTEM RESOURCES USAGE:
</span>
Expand Down