[FIX] Switch to bottom margin instead of top/bottom padding

This is the much more commonly used approach.
This commit is contained in:
Peter Pfeufer 2024-06-01 12:01:44 +02:00
parent 66e8ddb684
commit 069352fb0f
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
7 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
{% load i18n %}
<div id="aa-dashboard-panel-characters" class="col-12 col-xl-8 py-2">
<div id="aa-dashboard-panel-characters" class="col-12 col-xl-8 mb-3">
<div class="card h-100">
<div class="card-body">
{% translate "Characters" as widget_title %}

View File

@ -1,5 +1,5 @@
{% load i18n %}
<div id="aa-dashboard-panel-membership" class="col-12 col-xl-4 py-2">
<div id="aa-dashboard-panel-membership" class="col-12 col-xl-4 mb-3">
<div class="card h-100">
<div class="card-body">
{% translate "Membership" as widget_title %}

View File

@ -1,7 +1,7 @@
{% load i18n %}
{% load evelinks %}
<div class="col-12 py-2">
<div class="col-12 mb-3">
<div class="card h-100">
<div class="card-body">
{% translate "Upcoming Fleets" as widget_title %}

View File

@ -23,7 +23,7 @@
console.log("ESI Check: ", JSON.stringify(responseJson, null, 2));
const status = responseJson.status;
if (status != 200) {
if (status !== 200) {
elemCode.textContent = status
elemMessage.textContent = responseJson.data.error;
new bootstrap.Collapse(elemCard, {

View File

@ -2,7 +2,7 @@
{% load humanize %}
{% if notifications %}
<div id="aa-dashboard-panel-admin-notifications" class="col-12 pb-2">
<div id="aa-dashboard-panel-admin-notifications" class="col-12 mb-3">
<div class="card">
<div class="card-body">
{% translate "Alliance Auth Notifications" as widget_title %}
@ -46,7 +46,7 @@
</div>
{% endif %}
<div class="col-12 py-2">
<div class="col-12 mb-3">
<div class="card">
<div class="card-body row">
<div id="aa-dashboard-panel-software-version" class="col-xl-6 col-lg-12 col-md-12 col-sm-12">

View File

@ -1,7 +1,7 @@
{% load i18n %}
{% load evelinks %}
<div class="col-12 py-2">
<div class="col-12 mb-3">
<div class="card h-100">
<div class="card-body">
{% translate "Upcoming Timers" as widget_title %}

View File

@ -35,7 +35,7 @@ To ensure the dashboard widgets have a unified style, we provide a template part
To use it, you can use the following code in your dashboard widget template:
```django
<div id="my-app-dashboard-widget" class="col-12 py-2">
<div id="my-app-dashboard-widget" class="col-12 mb-3">
<div class="card">
<div class="card-body">
{% translate "My Widget Title" as widget_title %}