Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Improve table style be sticking rows to edges.

Kailash Nadhbadf5fc83dae
diff --git a/frontend/src/assets/style.css b/frontend/src/assets/style.css
index c0abb258..ecaafc7f 100644
--- a/frontend/src/assets/style.css
+++ b/frontend/src/assets/style.css
@@ -43,7 +43,10 @@ a {
table {
th, td {
- padding: var(--space-3) 0;
+ padding: var(--space-3) var(--space-2);
+ p {
+ margin: 0 0 var(--space-1) 0;
+ }
}
.hstack {
@@ -400,6 +403,24 @@ ol.no {
.page-content {
margin-block-end: var(--space-6);
+
+ /* Stick the table to the edges */
+ .b-table {
+ margin: 0 calc(-1*var(--space-6));
+
+ tr th:first-child,
+ tr td:first-child {
+ padding-left: var(--space-6);
+ }
+ tr th:last-child,
+ tr td:last-child {
+ padding-right: var(--space-6);
+ }
+
+ .table-toolbar, .b-pagination {
+ padding: 0 var(--space-6);
+ }
+ }
}
.has-kbd {
diff --git a/frontend/src/views/Forms.vue b/frontend/src/views/Forms.vue
index dcfd5ad6..13233448 100644
--- a/frontend/src/views/Forms.vue
+++ b/frontend/src/views/Forms.vue
@@ -54,7 +54,7 @@
</li>
</ul>
</div>
- <div class="col-12" data-cy="form">
+ <div class="col-8 cold-end" data-cy="form">
<h4>{{ $t('forms.formHTML') }}</h4>
<p>
{{ $t('forms.formHTMLHelp') }}