diff --git a/scripts/filters.py b/scripts/filters.py index f463f854..cec73eef 100644 --- a/scripts/filters.py +++ b/scripts/filters.py @@ -218,7 +218,7 @@ def is_owner_function(self, queryset, name, value): class StatisticsFilter(django_filters.FilterSet, django_filters.filters.QuerySetRequestMixin): is_owner = django_filters.filters.BooleanFilter( - widget=forms.CheckboxInput, label="My Scripts only", method="is_owner_function" + widget=forms.CheckboxInput, label="My scripts only", method="is_owner_function" ) class Meta: diff --git a/scripts/static/css/mobile.css b/scripts/static/css/mobile.css new file mode 100644 index 00000000..48c8475e --- /dev/null +++ b/scripts/static/css/mobile.css @@ -0,0 +1,27 @@ +/* Mobile styles for BotC Scripts */ + +/* Alert messages - center properly on all screen sizes */ +@media (max-width: 767.98px) { + div.alert-messages { + left: 10% !important; + right: 10% !important; + } +} + +/* Tables - enable horizontal scroll on mobile */ +@media (max-width: 767.98px) { + .table-responsive-mobile { + display: block; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + } +} + +/* Button rows - allow wrapping on mobile */ +@media (max-width: 575.98px) { + .btn-row-mobile .col-md-auto { + flex: 0 0 100%; + max-width: 100%; + padding: 0.25rem 0; + } +} diff --git a/scripts/templates/base.html b/scripts/templates/base.html index a3ea5a23..d364627b 100644 --- a/scripts/templates/base.html +++ b/scripts/templates/base.html @@ -26,7 +26,9 @@ BotC Scripts + + diff --git a/scripts/templates/navbar.html b/scripts/templates/navbar.html index 9863e22b..2224cc73 100644 --- a/scripts/templates/navbar.html +++ b/scripts/templates/navbar.html @@ -1,7 +1,12 @@ {% load i18n %} -