Set thumbnail position relative to viewport

Display thumbnail 100px from the bottom
This commit is contained in:
Luca 2019-10-26 12:34:34 +02:00 committed by Florian Festi
parent 330ebdb752
commit 2ab360a415
2 changed files with 7 additions and 2 deletions

View File

@ -334,9 +334,8 @@ class BServer:
for nr, group in enumerate(self.groups): for nr, group in enumerate(self.groups):
result.append('''<h3 id="h-%s" class="open" onclick="showHide('%s')">%s</h3>\n<div id="%s">\n''' % (nr, nr, _(group.title), nr)) result.append('''<h3 id="h-%s" class="open" onclick="showHide('%s')">%s</h3>\n<div id="%s">\n''' % (nr, nr, _(group.title), nr))
result.append(""" result.append("""
<div style="width: 20%%; float: right;">
<img style="width: 200px;" id="sample-%s" src="static/nothing.png" alt="" /> <img style="width: 200px;" id="sample-%s" src="static/nothing.png" alt="" />
</div>\n<ul>\n""" % (group.name)) <ul>\n""" % (group.name))
for box in group.generators: for box in group.generators:
name = box.__name__ name = box.__name__
if name in ("TrayLayout2", ): if name in ("TrayLayout2", ):

View File

@ -138,6 +138,12 @@ video {
margin-right: 10px; margin-right: 10px;
} }
img[id|=sample] {
position: fixed;
bottom: 100px;
right: calc(50% - 498px);
}
ul { ul {
padding-left: 5px; padding-left: 5px;
} }