Skip to content

Commit

Permalink
[#1976] Made exception for non-sticky notifications in document-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin authored and alextreme committed Jan 9, 2024
1 parent 8290bc3 commit 9303820
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/open_inwoner/scss/components/Cases/CaseDetail.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
margin: var(--spacing-extra-large) 0;
}

.document-upload {
&-notification {
.notifications {
position: static;
}
}
}

/// cards on case detail
.card {
margin-bottom: var(--spacing-extra-large);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.notifications {
position: sticky;
top: var(--spacing-extra-large);
display: flex;
flex-direction: column;
Expand Down
3 changes: 3 additions & 0 deletions src/open_inwoner/templates/pages/cases/status_inner.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ <h1 class="h1" id="title">{{ case.description }}</h1>
<h2 class="h2" id="documents-upload">{% trans "Documenten" %}</h2>
<h3 class="h3 documents-upload__h3">{% trans "Voeg documenten toe" %}</h3>

<div class="document-upload-notification">
{% notifications messages show_local_messages=True closable=False %}
</div>


{% if case.case_type_document_upload_description %}
<div class="card card--compact card--info">
Expand Down

0 comments on commit 9303820

Please sign in to comment.