Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

RichClient: better handling for small screens/windows

apfelmaennchen9b6fac4a8279
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