diff --git a/weblate/static/styles/screenshots/screenshot_detail.css b/weblate/static/styles/screenshots/screenshot_detail.css new file mode 100644 index 000000000000..974d0f3752bc --- /dev/null +++ b/weblate/static/styles/screenshots/screenshot_detail.css @@ -0,0 +1,26 @@ +/* + * Copyright © Michal Čihař + * + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#sources-listing { + max-height: 400px; + overflow-y: auto; +} + +@media (max-width: 767px) { + #sources-listing { + max-height: 300px; + } + + #sources-listing td > .btn { + margin-bottom: 5px; + } + + .panel-footer { + gap: 20px; + display: flex; + flex-direction: column; + } +} diff --git a/weblate/templates/base.html b/weblate/templates/base.html index d0d9e28f35fc..243cf20c5ed3 100644 --- a/weblate/templates/base.html +++ b/weblate/templates/base.html @@ -101,8 +101,11 @@ -{% block extra_meta %} -{% endblock %} + {% block extra_meta %} + {% endblock %} + + {% block extra_styles %} + {% endblock %} diff --git a/weblate/templates/screenshots/screenshot_detail.html b/weblate/templates/screenshots/screenshot_detail.html index d0343ea438f9..b12f8cdee407 100644 --- a/weblate/templates/screenshots/screenshot_detail.html +++ b/weblate/templates/screenshots/screenshot_detail.html @@ -13,6 +13,10 @@ {% endcompress %} {% endblock %} +{% block extra_styles %} + +{% endblock %} + {% block breadcrumbs %} {% path_object_breadcrumbs object.translation.component %}
  • {% trans "Screenshots" %}