Refactor CSS styles for improved layout; update logo and heading in login page; shorten camera view names in video player

This commit is contained in:
zwitschi committed 2026-07-28 11:12:20 +02:00
1 parent 1eb60f7c06
commit 082ef385bc
4 files changed
+15 -32

No files matched your search

+6 -22
View File
@@ -303,14 +303,14 @@ header {
.cs-grid { .cs-grid {
display: grid; display: grid;
grid-template-columns: 1fr auto 1fr; grid-template-columns: 1fr auto 1fr;
gap: 8px; gap: 2px;
align-items: center; align-items: center;
} }
.cs-col { .cs-col {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 6px; gap: 2px;
} }
.cs-col:first-child { .cs-col:first-child {
@@ -329,7 +329,7 @@ header {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 6px;
padding: 0.4rem 0.75rem; padding: 0.2rem 0.75rem;
background: rgba(255, 255, 255, 0.03); background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 999px; border-radius: 999px;
@@ -343,7 +343,7 @@ header {
color 0.25s ease, color 0.25s ease,
border-color 0.25s ease; border-color 0.25s ease;
white-space: nowrap; white-space: nowrap;
min-width: 110px; min-width: 64px;
justify-content: center; justify-content: center;
} }
@@ -366,22 +366,6 @@ header {
cursor: not-allowed; cursor: not-allowed;
} }
.cs-btn-label {
flex: 1;
}
.cs-btn-count {
background: rgba(255, 255, 255, 0.12);
padding: 1px 8px;
border-radius: 20px;
font-size: 11px;
font-weight: 700;
}
.cs-btn.active .cs-btn-count {
background: rgba(0, 0, 0, 0.25);
}
/* ============================================= /* =============================================
Login Page Login Page
============================================= */ ============================================= */
@@ -412,8 +396,8 @@ header {
} }
.login-brand .logo { .login-brand .logo {
width: 48px; width: 290px;
height: 48px; height: 158px;
display: grid; display: grid;
place-items: center; place-items: center;
} }
+1 -2
View File
@@ -133,8 +133,7 @@
> >
<span class="cs-btn-label">{{ cam.display }}</span> <span class="cs-btn-label">{{ cam.display }}</span>
</button> </button>
{% if cam.key=='front' %} {% if cam.key=='front' %} {% endif %} {% endfor %}
{% endif %} {% endfor %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
+2 -2
View File
@@ -14,11 +14,11 @@
<div class="login-brand"> <div class="login-brand">
<span class="logo" aria-hidden="true"> <span class="logo" aria-hidden="true">
<img <img
src="{{ url_for('static', filename='img/apple-touch-icon.png') }}" src="{{ url_for('static', filename='img/open_mic_odyssey.png') }}"
alt="Logo" alt="Logo"
/> />
</span> </span>
<h1>TeslaCam Player</h1> <h1>Driving Footage</h1>
</div> </div>
<form method="POST" action="{{ url_for('login') }}" class="login-form"> <form method="POST" action="{{ url_for('login') }}" class="login-form">
+6 -6
View File
@@ -45,18 +45,18 @@ VIDEO_FILENAME_REGEX = re.compile(
# Friendly display names for camera views # Friendly display names for camera views
CAMERA_VIEW_MAPPING = { CAMERA_VIEW_MAPPING = {
'front': 'Front', 'front': 'Front',
'left_repeater': 'Left Repeater', 'left_repeater': 'L Rep.',
'right_repeater': 'Right Repeater', 'right_repeater': 'R Rep.',
'back': 'Back', 'back': 'Back',
'left_pillar': 'Left Pillar', 'left_pillar': 'L Pillar',
'right_pillar': 'Right Pillar' 'right_pillar': 'R Pillar'
} }
# Camera button layout order: three columns around the car graphic # Camera button layout order: three columns around the car graphic
CAMERA_LAYOUT = [ CAMERA_LAYOUT = [
['left_repeater', 'left_pillar'], ['left_pillar', 'left_repeater'],
['front', 'back'], ['front', 'back'],
['right_repeater', 'right_pillar'], ['right_pillar', 'right_repeater'],
] ]
# In-memory scan cache. Scanning a large TeslaCam tree on every request is # In-memory scan cache. Scanning a large TeslaCam tree on every request is