mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-27 18:10:28 +00:00
Merge pull request #3404 from wallabag/issue-2424
material: replace card activator with article link on card preview
This commit is contained in:
commit
f39cfa4690
5 changed files with 15 additions and 4 deletions
|
@ -134,6 +134,7 @@ main {
|
|||
.card-fullimage .preview {
|
||||
height: 14em;
|
||||
background: no-repeat 50%/cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.sw {
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
<li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="preview activator" style="background-image: url({{ entry.previewPicture }})"></div>
|
||||
<a href="{{ path('view', { 'id': entry.id }) }}">
|
||||
<span class="preview" style="background-image: url({{ entry.previewPicture }})"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="card-content">
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
<div class="card-stacked">
|
||||
<div class="preview">{% if entry.previewPicture is not null %}<img src="{{ entry.previewPicture }}" />{% endif %}</div>
|
||||
<div class="preview">
|
||||
{% if entry.previewPicture is not null %}
|
||||
<a href="{{ path('view', { 'id': entry.id }) }}">
|
||||
<img src="{{ entry.previewPicture }}" />
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<span class="card-title dot-ellipsis dot-resize-update">
|
||||
<a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title | striptags | e('html_attr') }}">
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
<li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="preview activator" style="background-image: url({{ entry.previewPicture }})"></div>
|
||||
<a href="{{ path('view', { 'id': entry.id }) }}">
|
||||
<span class="preview" style="background-image: url({{ entry.previewPicture }})"></span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="card-content">
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue