mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-17 03:05:19 +00:00
Hide article text on mobile with list mode
This commit is contained in:
parent
8f3ff39ca3
commit
56a7ce17f3
5 changed files with 9 additions and 3 deletions
|
@ -1203,6 +1203,10 @@ pre code {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@media screen and (max-width: 500px) {
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.entry {
|
.entry {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
<li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
<li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
<p {% if viewMode == 1 %}class="hide"{% endif %}>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<ul class="card-entry-labels">
|
<ul class="card-entry-labels">
|
||||||
{% for tag in entry.tags | slice(0, 3) %}
|
{% for tag in entry.tags | slice(0, 3) %}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{ entry.title| striptags | truncate(120, true, '…') | raw }}
|
{{ entry.title| striptags | truncate(120, true, '…') | raw }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<p>{{ entry.content|striptags|slice(0, 500)|raw }}…</p>
|
<p class="hide-on-med-and-down">{{ entry.content|striptags|slice(0, 500)|raw }}…</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
{% include "@WallabagCore/themes/material/Entry/_card_actions.html.twig" with {'entry': entry} only %}
|
||||||
|
|
|
@ -852,5 +852,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
|
||||||
$client->request('GET', '/unread/list');
|
$client->request('GET', '/unread/list');
|
||||||
|
|
||||||
$this->assertContains('listmode', $client->getResponse()->getContent());
|
$this->assertContains('listmode', $client->getResponse()->getContent());
|
||||||
|
|
||||||
|
$client->request('GET', '/config/view-mode');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue