From 7a0ef152f1e415303b7d4b7d86aa61b4c3ace837 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Wed, 2 Oct 2024 17:12:03 +0300 Subject: [PATCH] Fix plugin card in mobile --- .../templates/plugins/plugin_list.html | 56 +++++++++---------- .../scss/bulma/components/plugins-list.sass | 20 +++++-- 2 files changed, 41 insertions(+), 35 deletions(-) diff --git a/qgis-app/plugins/templates/plugins/plugin_list.html b/qgis-app/plugins/templates/plugins/plugin_list.html index 6096f69..ec5c690 100644 --- a/qgis-app/plugins/templates/plugins/plugin_list.html +++ b/qgis-app/plugins/templates/plugins/plugin_list.html @@ -84,7 +84,16 @@

{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}

is-half-desktop is-one-quarter-widescreen is-one-third-fullhd"> -
+
@@ -104,7 +113,7 @@

{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}

{% endwith %} {% else %}
- {% trans + {% trans
{% endif %}
@@ -123,23 +132,8 @@

{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}

-

-

-
- -
({{ object.rating_votes }}) -
-

-

- - - - - {{ object.downloads|intcomma }} - -

@@ -148,24 +142,28 @@

{% if title %}{{title}}{% else %}{% trans "All plugins" %}{% endif %}

{{ object.latest_version_date|local_timezone:"SHORT_NATURAL_DAY" }}

+
+
+ +
({{ object.rating_votes }}) +
diff --git a/qgis-app/static/style/scss/bulma/components/plugins-list.sass b/qgis-app/static/style/scss/bulma/components/plugins-list.sass index d8b8bf4..4704d03 100644 --- a/qgis-app/static/style/scss/bulma/components/plugins-list.sass +++ b/qgis-app/static/style/scss/bulma/components/plugins-list.sass @@ -36,12 +36,20 @@ cursor: pointer .plugins-list-grid - .author - display: block - white-space: nowrap - width: 200px - overflow: hidden - text-overflow: ellipsis + .card:hover + background-color: #ECF1F4 + cursor: pointer + .card + +tablet + height: 100% + .media-content + overflow: hidden + .author + display: block + white-space: nowrap + width: 200px + overflow: hidden + text-overflow: ellipsis div &.plugins-list-table, .versions-list-table