-
{{ entry.title|raw }}
- {% if entry.readingTime > 0 %}
-
{% trans %}estimated reading time: {% endtrans %} {{ entry.readingTime }} min
- {% else %}
-
{% trans %}estimated reading time: {% endtrans %} < 1 min
- {% endif %}
- {% if entry.previewPicture is null %}
-
{{ entry.content|striptags|slice(0, 300) }}…
- {% else %}
-
![{{ entry.title|raw }}]({{ entry.previewPicture }})
+
+
+ {% if not entry.previewPicture is null %}
+
{% endif %}
+
+
+ {% if not entry.previewPicture is null %}
+
+ {% endif %}
+
+
{{ entry.title|raw|striptags|slice(0, 42) }}
+
+ {% if entry.readingTime > 0 %}
+
{% trans %}estimated reading time: {% endtrans %} {{ entry.readingTime }} min
+ {% else %}
+
{% trans %}estimated reading time: {% endtrans %} < 1 min
+ {% endif %}
+
+ {% if entry.previewPicture is null %}
+
{{ entry.content|striptags|slice(0, 300) }}…
+ {% endif %}
+
+
+ {% if not entry.previewPicture is null %}
+
+
+
{{ entry.title|raw }}
+
+ {% if entry.readingTime > 0 %}
+
{% trans %}estimated reading time: {% endtrans %} {{ entry.readingTime }} min
+ {% else %}
+
{% trans %}estimated reading time: {% endtrans %} < 1 min
+ {% endif %}
+
+
{{ entry.content|striptags|slice(0, 300) }}…
+
+ {% endif %}
+
{{ entry.domainName | truncate(18) }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css b/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css
index 5e1ae8bd5..144e259fb 100755
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/public/css/main.css
@@ -221,15 +221,11 @@ main ul.row {
padding: 0px 0.75rem;
}
-.data .card .card-content {
+.data .card .card-body {
height: 22em;
overflow: hidden;
}
-img.preview {
- max-width: 100%;
-}
-
.card .card-content .card-title {
line-height: 32px;
}
@@ -262,6 +258,21 @@ img.preview {
margin-right: auto;
}
+.mdi-card-close:before {
+ content: "\e8aa";
+}
+
+.card .card-image {
+ height: 14em;
+}
+
+.card .card-image .preview {
+ height: 14em;
+ background-size: cover;
+ background-repeat: no-repeat;
+ background-position: 50%;
+}
+
/* ==========================================================================
5 = Article
========================================================================== */