From 79f51fbb826086396ed82d7f624f44852524a72a Mon Sep 17 00:00:00 2001
From: Andreas Valder <andreasv@fsmpi.rwth-aachen.de>
Date: Tue, 6 Sep 2016 20:30:28 +0200
Subject: [PATCH] fixed preview

---
 static/style.css      | 7 +++++--
 templates/macros.html | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/static/style.css b/static/style.css
index cfbd5ba..d4aab31 100644
--- a/static/style.css
+++ b/static/style.css
@@ -1,3 +1,6 @@
 .videopreview > li:nth-child(even) { background: #f5f5f5; }
-.courses-list li:nth-child(even) { background: #fAfAfA; } 
-.list-group-item-condensed { padding: 2px !important; }
+.courses-list li:nth-child(even) { background: #fAfAfA; }
+
+@media (min-width: 767px) {
+	.list-group-item-condensed { padding-top: 2px !important; padding-bottom: 2px !important; }
+}
diff --git a/templates/macros.html b/templates/macros.html
index f3327a2..9b79926 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -19,7 +19,7 @@
 	<a class="visible-xs" href="{{url_for('lecture', id=lecture['id'])}}" title="{{ lecture['coursetitle'] }}" style="color: #000">
 		<ul class="list-unstyled">
 			<li>
-				<img src="{{ config.VIDEOPREFIX }}/{{ lecture['titlefile'] }}" alt="Vorschaubild">
+				<img style="width: 100%;" src="{{ config.VIDEOPREFIX }}/{{ lecture['titlefile'] }}" alt="Vorschaubild">
 			</li>
 			<li>
 				<strong>{{ lecture['short'] }}</strong>	{{ lecture['time'] }}
-- 
GitLab