Server: Style federation rows a bit better

This commit is contained in:
asonix 2021-02-04 21:28:13 -06:00
parent 36535227af
commit 61f0a97e44
2 changed files with 42 additions and 30 deletions

View file

@ -109,6 +109,7 @@ picture {
padding: 80px 0 32px; padding: 80px 0 32px;
} }
.server,
.report, .report,
.notification { .notification {
width: 100%; width: 100%;
@ -341,6 +342,7 @@ picture {
padding: 0; padding: 0;
} }
.server,
.report, .report,
.notification { .notification {
display: block; display: block;

View file

@ -185,6 +185,7 @@
}) })
@for s in federation_view.inbound() { @for s in federation_view.inbound() {
@:card_body({ @:card_body({
<div class="server">
@:server_box(s.server, {}) @:server_box(s.server, {})
<div class="button-section"> <div class="button-section">
@:button_group(&[ @:button_group(&[
@ -193,6 +194,7 @@
s.block(loader), s.block(loader),
]) ])
</div> </div>
</div>
}) })
} }
@if federation_view.has_inbound_nav() { @if federation_view.has_inbound_nav() {
@ -207,6 +209,7 @@
}) })
@for s in federation_view.outbound() { @for s in federation_view.outbound() {
@:card_body({ @:card_body({
<div class="server">
@:server_box(s.server, {}) @:server_box(s.server, {})
<div class="button-section"> <div class="button-section">
@:button_group(&[ @:button_group(&[
@ -214,6 +217,7 @@
s.block(loader), s.block(loader),
]) ])
</div> </div>
</div>
}) })
} }
@if federation_view.has_outbound_nav() { @if federation_view.has_outbound_nav() {
@ -228,6 +232,7 @@
}) })
@for s in federation_view.federated() { @for s in federation_view.federated() {
@:card_body({ @:card_body({
<div class="server">
@:server_box(s.server, {}) @:server_box(s.server, {})
<div class="button-section"> <div class="button-section">
@:button_group(&[ @:button_group(&[
@ -235,6 +240,7 @@
s.block(loader), s.block(loader),
]) ])
</div> </div>
</div>
}) })
} }
@if federation_view.has_federated_nav() { @if federation_view.has_federated_nav() {
@ -249,12 +255,14 @@
}) })
@for s in federation_view.blocked() { @for s in federation_view.blocked() {
@:card_body({ @:card_body({
<div class="server">
@:server_box(s.server, {}) @:server_box(s.server, {})
<div class="button-section"> <div class="button-section">
@:button_group(&[ @:button_group(&[
s.unblock(loader), s.unblock(loader),
]) ])
</div> </div>
</div>
}) })
} }
@if federation_view.has_blocked_nav() { @if federation_view.has_blocked_nav() {
@ -269,6 +277,7 @@
}) })
@for s in federation_view.known() { @for s in federation_view.known() {
@:card_body({ @:card_body({
<div class="server">
@:server_box(s.server, {}) @:server_box(s.server, {})
<div class="button-section"> <div class="button-section">
@:button_group(&[ @:button_group(&[
@ -276,6 +285,7 @@
s.block(loader), s.block(loader),
]) ])
</div> </div>
</div>
}) })
} }
@if federation_view.has_known_nav() { @if federation_view.has_known_nav() {