Skip to content

Commit 2575e6a

Browse files
committed
Improved size and position of back to top button to avoid overlapping with buttons, etc.
This should fix issue #737
1 parent 484ba5e commit 2575e6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/css/app/layout.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ body {
108108
.back-to-top {
109109
cursor: pointer;
110110
position: fixed;
111-
bottom: 20px;
112-
right: 20px;
111+
bottom: 60px;
112+
right: 40px;
113113
display:none;
114114
z-index: 1030;
115115
}

templates/base.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
{# Back to top buton #}
112112

113113
<!-- Back to top button -->
114-
<button id="back-to-top" class="btn btn-primary back-to-top" role="button" title="{% trans %}back_to_top{% endtrans %}"
114+
<button id="back-to-top" class="btn btn-primary back-to-top btn-sm" role="button" title="{% trans %}back_to_top{% endtrans %}"
115115
{{ stimulus_controller('common/back_to_top') }} {{ stimulus_action('common/back_to_top', 'backToTop') }}>
116116
<i class="fas fa-angle-up fa-fw"></i>
117117
</button>

0 commit comments

Comments
 (0)