Skip to content

Commit 32460ac

Browse files
twalenkamilszymczak1
authored andcommitted
quick fix for overlapping send feedback button (#540)
1 parent aa2d37a commit 32460ac

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

oioioi/base/templates/ingredients/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
</script>
2222
{% all_with_prefix extra_footer_ %}
2323
</footer>
24+
{% all_with_prefix extra_after_footer_ %}
2425

2526

oioioi/szkopul/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def generator():
1313
context={'support_email': settings.SZKOPUL_SUPPORT_EMAIL},
1414
)
1515

16-
return {'extra_body_szkopul_contact': lazy(generator, str)()}
16+
return {'extra_after_footer_szkopul_contact': lazy(generator, str)()}
1717
else:
1818
return {}

oioioi/szkopul/static/common/szkopul.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@
6868
word-break: break-all;
6969
}
7070

71-
#szkopul-contact-form-open {
72-
position: fixed;
73-
right: 1em;
71+
#szkopul-contact-form-open-div {
72+
position: sticky;
7473
bottom: 1em;
74+
padding-right: 1em;
75+
width: 100%;
76+
display: flex;
77+
justify-content: flex-end;
7578
z-index: 999;
7679
}
7780

oioioi/szkopul/templates/szkopul/contact-info.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ <h5 id="szkopul-contact-form-title" class="modal-title">{% trans "Send Feedback"
2525
</div>
2626
</div>
2727
</div>
28-
<button class="btn btn-info" id="szkopul-contact-form-open" type="button"
28+
<div id="szkopul-contact-form-open-div">
29+
<button class="btn btn-info" id="szkopul-contact-form-open" type="button"
2930
data-toggle="modal" data-target="#szkopul-contact-form">
3031
{% trans "Send Feedback" %}
3132
</button>
33+
</div>
3234

3335
{% block scripts %}
3436
<script type="text/javascript">

0 commit comments

Comments
 (0)