From 56a7ce17f3a9a22e0bfc8651cb690a14447e0afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 28 Nov 2016 11:26:08 +0100 Subject: Hide article text on mobile with list mode --- app/Resources/static/themes/baggy/css/main.css | 4 ++++ .../CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | 2 +- .../Resources/views/themes/material/Entry/_card_list.html.twig | 2 +- tests/Wallabag/CoreBundle/Controller/ConfigControllerTest.php | 2 ++ web/bundles/wallabagcore/themes/baggy/css/style.min.css | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/Resources/static/themes/baggy/css/main.css b/app/Resources/static/themes/baggy/css/main.css index 126c451b..6d656c21 100755 --- a/app/Resources/static/themes/baggy/css/main.css +++ b/app/Resources/static/themes/baggy/css/main.css @@ -1203,6 +1203,10 @@ pre code { } @media screen and (max-width: 500px) { + .hide { + display: none; + } + .entry { width: 100%; margin-left: 0; diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index 3df990a3..33863920 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -58,7 +58,7 @@
  • {{ tag.label }}
  • {% endfor %} -

    {{ entry.content|striptags|slice(0, 300) }}…

    +

    {{ entry.content|striptags|slice(0, 300) }}…

    {% else %}