From 9b6fac4a82798fa91e928e1708ebe4c5fbfaf122 Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Sun, 8 Mar 2009 08:55:04 +0000 Subject: [PATCH] RichClient: better handling for small screens/windows git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5681 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/ui/css/base.css | 7 +++---- htroot/yacy/ui/index.html | 8 ++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/htroot/yacy/ui/css/base.css b/htroot/yacy/ui/css/base.css index c56778662..f873055ee 100644 --- a/htroot/yacy/ui/css/base.css +++ b/htroot/yacy/ui/css/base.css @@ -5,13 +5,12 @@ body { /* Main */ div.main { float:left; - margin-top:1.5em; - width:75%; - height:100%; + margin-top:25px; + min-width: 470px; } /* Sidebar */ div.sidebar { - margin-right: 1em; + margin-right: 10px; float:left; width:250px; } diff --git a/htroot/yacy/ui/index.html b/htroot/yacy/ui/index.html index 14e480542..5d5c8f75a 100644 --- a/htroot/yacy/ui/index.html +++ b/htroot/yacy/ui/index.html @@ -61,6 +61,14 @@ bmk_tab = 2; tabid = "#Welcome"; + $(window).resize(function(){ + var width = document.documentElement.clientWidth; + if (width > 800) width = width - 290; + else width = width - 20; + $("#tabs-container").width(width); + }); + $(window).trigger("resize"); + $.ajaxSetup({ timeout: 10000, cache: false