Skip to content

Commit 6f63ab4

Browse files
committed
AV-2486: Remove margin below service messages and fix multiline layout
1 parent ef8262f commit 6f63ab4

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

drupal/modules/avoindata-servicemessage/templates/avoindata_servicemessage_block.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<li class="alert alert-{{ alert_type }} alert-dismissible">
2525
<div class="container">
2626
<i class="far {{ alert_icon }}"></i>
27-
<span>{{ message.body|raw }}</span>
27+
<div>{{ message.body|raw }}</div>
2828
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="{% trans %}Close{% endtrans %}">{% trans %}Close{% endtrans %}<i class="fal fa-times"></i></button>
2929
</div>
3030
</li>

opendata-assets/src/scss/navbars.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ End of dropdown CSS
831831

832832
.service-messages {
833833
list-style: none;
834-
margin-bottom: 10px;
834+
margin-bottom: 0;
835835
padding: 0;
836836
font-size: $font-size-base;
837837

@@ -841,8 +841,8 @@ End of dropdown CSS
841841
border-radius: 0 !important;
842842
min-height: 46px;
843843

844-
span {
845-
margin-left: 20px;
844+
div {
845+
padding: 0 25px;
846846
}
847847

848848
.btn-close,
@@ -912,11 +912,9 @@ End of dropdown CSS
912912
}
913913
}
914914

915-
916-
917-
918915
.container{
919916
position: relative;
917+
display: flex;
920918
}
921919

922920
// Treat all links inside alert as .alert-link

0 commit comments

Comments
 (0)