Skip to content

Commit 077d460

Browse files
Make the summary previews "sticky" when scrolling.
Closes #48
1 parent bf2b4bf commit 077d460

9 files changed

Lines changed: 6 additions & 11 deletions

File tree

server/static/styles.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ span.marked {
133133
margin-bottom: 2rem;
134134
padding-left: 3rem;
135135
padding-right: 3rem;
136+
position: sticky;
137+
top: 0;
138+
align-self: flex-start;
136139
}
137140

138141
.ttfd-bottom-nav {
@@ -152,8 +155,8 @@ span.marked {
152155
align-items: center;
153156
gap: 5px;
154157
position: absolute;
155-
left: 20px;
156-
top: 170px;
158+
left: 0;
159+
top: 1rem;
157160
}
158161

159162
.ttfd-button {

server/templates/_base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
{% if ttfd.maintenance_mode %}
8383
<div class="ttfd-warning" role="alert">The application is in maintenance mode.</div>
8484
{% else %}
85+
{% include "_summary.html" %}
8586
<div class="ttfd-main-app" id="ttfd-main-app">
8687
{% block main required %}
8788
{% endblock %}

server/templates/atoms-view.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{% from "_stepper.html" import stepper %}
2-
{% include '_summary.html' %}
32
{{ stepper(current=step.current, history=step.history) }}
43
<div class="flex-center ttfd-metabolite-container">
54
{{ image | safe }}

server/templates/empty.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{% extends "_base.html" %}
33
{% set step = step %}
44
{% block main %}
5-
{% include '_summary.html' %}
65
{{ stepper(current=step.current, history=step.history) }}
76

87
<p>{{ message }}</p>

server/templates/gauge.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% from "_stepper.html" import stepper %}
22
{% extends "_base.html" %}
33
{% block main %}
4-
{% include '_summary.html' %}
54
{{ stepper(current=step.current, history=step.history) }}
65
<ul class="ttfd-grid">
76
{% for gauge in gauges %}

server/templates/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% from "_stepper.html" import stepper %}
22
{% extends "_base.html" %}
33
{% block main %}
4-
{% include '_summary.html' %}
54
{{ stepper(current=step.current, history=step.history) }}
65
<ul class="ttfd-grid">
76
{% for tracer in tracers %}

server/templates/list.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
{% set step = step %}
44
{% block main %}
55

6-
{% include '_summary.html' %}
7-
86
{{ stepper(current=step.current, history=step.history) }}
97

108
<div class="ttfd-list">

server/templates/results.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% from "_stepper.html" import stepper %}
22
{% extends "_base.html" %}
33
{% block main %}
4-
{% include "_summary.html" %}
54
{{ stepper(current=step.current, history=step.history) }}
65

76
<div class="ttfd-results-container">

server/templates/table.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,5 @@
2525
{% endfor %}
2626
</div>
2727

28-
{% include '_summary.html' %}
29-
3028
{% include '_bottom_nav_buttons.html' %}
3129
{% endblock %}

0 commit comments

Comments
 (0)