summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegabigbug <megabigbug@arrakis.(none)>2009-10-22 23:10:18 +0200
committermegabigbug <megabigbug@arrakis.(none)>2009-10-22 23:10:18 +0200
commit895bcc7531351c71d4a5c0cb5c3221d59c312aad (patch)
tree1013e1df9e1d5786663168dde2d1b89092c5fa05
parentmodify previewImage size (diff)
downloadrekonq-895bcc7531351c71d4a5c0cb5c3221d59c312aad.tar.xz
dynamic space between previews
previews centered
-rw-r--r--data/home.html16
-rw-r--r--src/homepage.cpp5
2 files changed, 18 insertions, 3 deletions
diff --git a/data/home.html b/data/home.html
index 893f5d76..53b5a370 100644
--- a/data/home.html
+++ b/data/home.html
@@ -107,14 +107,28 @@ margin-right: 4px;
margin-left: 4px;
}
+
+.favorites{
+text-align: center;
+}
+
/* -------------------------------------------------------- */
/* Thumbnail class */
.thumbnail {
text-align: center;
-float:left;
+display: inline-block;
+width:25%;
margin-bottom: 7%;
cursor: pointer;
+min-width:250px;
+min-height:192px;
+}
+
+.thumbnail object{
+text-align: center;
+width:228px;
+height:192px;
}
/* -------------------------------------------------------- */
diff --git a/src/homepage.cpp b/src/homepage.cpp
index 835be043..965bb749 100644
--- a/src/homepage.cpp
+++ b/src/homepage.cpp
@@ -112,7 +112,7 @@ QString HomePage::fillFavorites()
QStringList names = ReKonfig::previewNames();
QStringList urls = ReKonfig::previewUrls();
- QString speed;
+ QString speed="<div class=\"favorites\">";
for(int i=0; i<8; ++i)
{
speed += "<div class=\"thumbnail\">";
@@ -123,7 +123,8 @@ QString HomePage::fillFavorites()
speed += "</object>";
speed += "</div>";
}
-
+
+ speed += "</div>";
return speed;
}