Skip to content

Commit ef37aa4

Browse files
committed
Design fixes
1 parent 9f78f61 commit ef37aa4

3 files changed

Lines changed: 9 additions & 70 deletions

File tree

public/app.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,19 +292,16 @@ function displayResults() {
292292
<div class="route-jobs">
293293
${route.steps
294294
.map((job) => {
295-
if (job.type === 'start') {
296-
return `<div class="job-item"><span>start</span></div>`
297-
} else if (job.type === 'end') {
298-
return `<div class="job-item"><span>end</span></div>`
299-
} else {
300-
return `<div class="job-item">
301-
<span>${job.description}</span>
295+
return `<div class="job-item">
296+
<span>${
297+
job.description ??
298+
(job.type === 'start' ? 'Start' : 'Slut')
299+
}</span>
302300
<span class="job-location">${job.duration.toFixed(
303301
1
304302
)} min</span>
305303
</div>
306304
`
307-
}
308305
})
309306
310307
.join('')}

public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h3><i class="fas fa-truck"></i> Fordon</h3>
3434
</div>
3535

3636
<div class="sidebar-section">
37-
<h3><i class="fas fa-map-marker-alt"></i> Jobb</h3>
37+
<h3><i class="fas fa-map-marker-alt"></i> Kollegor</h3>
3838
<div id="jobsList" class="list-container">
3939
<!-- Jobs will be populated here -->
4040
</div>
@@ -55,7 +55,7 @@ <h3><i class="fas fa-map-marker-alt"></i> Jobb</h3>
5555

5656
<!-- Results Panel -->
5757
<div id="resultsPanel" class="results-panel hidden">
58-
<h3><i class="fas fa-chart-line"></i> Optimering Resultat</h3>
58+
<h3><i class="fas fa-chart-line"></i> Optimeringsesultat</h3>
5959
<div id="resultsContent">
6060
<!-- Results will be populated here -->
6161
</div>

public/styles.css

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ body {
112112

113113
.sidebar-section {
114114
margin-bottom: 2rem;
115+
display: flex;
116+
flex-direction: column;
115117
}
116118

117119
.sidebar-section:last-child {
@@ -128,7 +130,6 @@ body {
128130
}
129131

130132
.list-container {
131-
max-height: 300px;
132133
overflow-y: auto;
133134
margin-bottom: 1rem;
134135
border: 1px solid #e9ecef;
@@ -308,65 +309,6 @@ body {
308309
font-weight: 500;
309310
}
310311

311-
/* Modal */
312-
.modal {
313-
position: fixed;
314-
top: 0;
315-
left: 0;
316-
width: 100%;
317-
height: 100%;
318-
background: rgba(0, 0, 0, 0.5);
319-
display: flex;
320-
justify-content: center;
321-
align-items: center;
322-
z-index: 10000;
323-
}
324-
325-
.modal-content {
326-
background: white;
327-
border-radius: 12px;
328-
width: 90%;
329-
max-width: 500px;
330-
max-height: 90vh;
331-
overflow-y: auto;
332-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
333-
}
334-
335-
.modal-header {
336-
padding: 1.5rem;
337-
border-bottom: 1px solid #e9ecef;
338-
display: flex;
339-
justify-content: space-between;
340-
align-items: center;
341-
}
342-
343-
.modal-header h3 {
344-
color: #495057;
345-
margin: 0;
346-
}
347-
348-
.modal-close {
349-
background: none;
350-
border: none;
351-
font-size: 1.5rem;
352-
cursor: pointer;
353-
color: #6c757d;
354-
padding: 0;
355-
width: 30px;
356-
height: 30px;
357-
display: flex;
358-
align-items: center;
359-
justify-content: center;
360-
}
361-
362-
.modal-close:hover {
363-
color: #dc3545;
364-
}
365-
366-
.modal-body {
367-
padding: 1.5rem;
368-
}
369-
370312
/* Form Styles */
371313
.form-group {
372314
margin-bottom: 1rem;

0 commit comments

Comments
 (0)