Skip to content

Commit 25306ce

Browse files
committed
some frontend style fixes
1 parent daf125a commit 25306ce

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

nginx-reverse.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ server {
3737

3838
# Forward all other requests to the frontend container
3939
location / {
40-
try_files $uri $uri/ /index.html;
4140
proxy_pass http://frontend:80;
4241
proxy_set_header Host $host;
4342
proxy_set_header X-Real-IP $remote_addr;

website/src/components/runs/RunSidebar.vue

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
<div class="run-info">
1212
<div class="run-date">
1313
<span class="icon-calendar" title="Date">
14-
<svg><use href="/src/assets/icons/calender.svg#icon" /></svg>
14+
<img src="@/assets/icons/calender.svg" alt="Date" />
1515
</span>
1616
<span class="run-date-value">{{ formatDate(run.created_at) }}</span>
1717
</div>
1818
<div class="run-detail-row">
1919
<span class="icon-distance" title="Distance">
20-
<svg><use href="/src/assets/icons/ruler.svg#icon" /></svg>
20+
<img src="@/assets/icons/ruler.svg" alt="Distance" />
2121
</span>
2222
<span class="run-detail-label">Distance:</span>
2323
<span class="run-detail-value">{{ run.distance?.toFixed(2) ?? '?' }} km</span>
2424
</div>
2525
<div class="run-detail-row">
2626
<span class="icon-duration" title="Duration">
27-
<svg><use href="/src/assets/icons/rocket.svg#icon" /></svg>
27+
<img src="@/assets/icons/label.svg" alt="Duration" />
2828
</span>
2929
<span class="run-detail-label">Duration:</span>
3030
<span class="run-detail-value">{{ run.duration ?? '?' }}</span>
@@ -67,7 +67,9 @@ const formatDate = (dateStr: string) => {
6767

6868
<style scoped>
6969
.run-sidebar {
70-
width: 300px;
70+
width: 340px;
71+
min-width: 260px;
72+
max-width: 100%;
7173
background: #f7f7f7;
7274
border-right: 1px solid #ddd;
7375
overflow-y: auto;
@@ -106,6 +108,8 @@ const formatDate = (dateStr: string) => {
106108
text-align: left;
107109
margin-top: 0.2rem;
108110
color: #222;
111+
overflow-wrap: break-word;
112+
word-break: break-word;
109113
}
110114
.run-date {
111115
font-size: 1.05rem;
@@ -118,6 +122,10 @@ const formatDate = (dateStr: string) => {
118122
}
119123
.run-date-value {
120124
white-space: nowrap;
125+
overflow: hidden;
126+
text-overflow: ellipsis;
127+
display: block;
128+
max-width: 100%;
121129
font-size: 0.97em;
122130
}
123131
.run-detail-row {
@@ -134,6 +142,8 @@ const formatDate = (dateStr: string) => {
134142
.run-detail-value {
135143
color: #222;
136144
font-weight: 600;
145+
overflow-wrap: break-word;
146+
word-break: break-word;
137147
}
138148
.icon-calendar,
139149
.icon-distance,
@@ -145,9 +155,9 @@ const formatDate = (dateStr: string) => {
145155
height: 1.1em;
146156
vertical-align: middle;
147157
}
148-
.icon-calendar svg,
149-
.icon-distance svg,
150-
.icon-duration svg {
158+
.icon-calendar img,
159+
.icon-distance img,
160+
.icon-duration img {
151161
width: 1em;
152162
height: 1em;
153163
display: block;

website/src/components/runs/plan/PlannedSidebar.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ const formatDate = (dateStr: string) => {
6262

6363
<style scoped>
6464
.run-sidebar {
65-
width: 300px;
65+
width: 340px;
66+
min-width: 260px;
67+
max-width: 100%;
6668
background: #f7f7f7;
6769
border-right: 1px solid #ddd;
6870
overflow-y: auto;
@@ -101,6 +103,8 @@ const formatDate = (dateStr: string) => {
101103
text-align: left;
102104
margin-top: 0.2rem;
103105
color: #222;
106+
overflow-wrap: break-word;
107+
word-break: break-word;
104108
}
105109
.run-name {
106110
font-size: 1.05rem;
@@ -125,6 +129,8 @@ const formatDate = (dateStr: string) => {
125129
.run-detail-value {
126130
color: #222;
127131
font-weight: 600;
132+
overflow-wrap: break-word;
133+
word-break: break-word;
128134
}
129135
.icon-svg {
130136
width: 1.15em;
@@ -135,6 +141,10 @@ const formatDate = (dateStr: string) => {
135141
}
136142
.run-detail-value.date {
137143
white-space: nowrap;
144+
overflow: hidden;
145+
text-overflow: ellipsis;
146+
display: block;
147+
max-width: 100%;
138148
font-size: 0.97em;
139149
}
140150
</style>

0 commit comments

Comments
 (0)