Refactor UI elements for step selection and speaker management; improve styling and accessibility

This commit is contained in:
MikeHughes-BIN
2026-01-18 16:55:42 +01:00
parent 0427056f65
commit c98d7761b2
3 changed files with 209 additions and 83 deletions
+127 -22
View File
@@ -11,12 +11,12 @@ body {
}
#h1 {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: static;
transform: none;
margin: 0;
z-index: 20;
flex: 1;
text-align: center;
}
#h1-wrapper {
@@ -30,6 +30,26 @@ body {
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
box-sizing: border-box;
}
.gui-language {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
z-index: 100;
pointer-events: auto;
}
#language_option {
padding: 8px 12px;
border-radius: 4px;
border: 1px solid #ccc;
font-size: 14px;
cursor: pointer;
}
.upload-container {
@@ -85,7 +105,6 @@ body {
#previewThumbnail {
width: 150px;
height: 100px;
/*border: 1px dashed black;*/
}
.custom-btn {
@@ -108,8 +127,9 @@ body {
background-color: #0056b3;
}
#step2 {
gap: 25px;
.step h2 {
width: 100%;
text-align: center;
}
.KI-wrapper {
@@ -356,7 +376,10 @@ input[type="file"] {
#ai_type,
#transkript_type,
#language_option {
padding: 3px;
padding: 8px 12px;
border-radius: 4px;
border: 1px solid #ccc;
font-size: 14px;
}
.labelDiv {
@@ -404,7 +427,6 @@ input[type="file"] {
.step {
margin-top: 40px;
margin-bottom: 40px;
;
display: flex;
flex-direction: column;
min-height: 425px;
@@ -579,7 +601,27 @@ li {
transition: all 0.3s ease;
}
#step2,
#step2 {
font-size: larger;
align-items: center;
}
.step2-form {
width: 100%;
max-width: 420px;
display: flex;
flex-direction: column;
gap: 24px; /* DAS ist dein Spacing */
}
.step2-row {
display: flex;
flex-direction: column;
gap: 6px;
}
#step3,
#step5 {
font-size: larger;
@@ -590,7 +632,7 @@ li {
}
#step5 {
align-items: flex-start;
align-items: center;
}
.button-group {
@@ -614,27 +656,84 @@ li {
font-size: 14px;
}
.h2 {
font-size: 25px;
}
.speaker-container {
width: 100%;
max-width: 700px;
margin-top: 30px;
}
.speaker-table {
width: 100%;
border-collapse: collapse;
background: white;
}
.speaker-table tbody tr {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 25px;
padding: 10px 0;
}
.label-cell {
flex: 0 0 150px;
text-align: left;
}
.label-cell label {
font-weight: 400;
display: block;
}
.input-cell {
flex: 1;
}
#cur_speaker,
#newSpeaker {
width: 100%;
padding: 10px;
border-radius: 6px;
border: 1px solid #ccc;
font-size: 14px;
box-sizing: border-box;
}
#speakerAudioViewer {
width: 100%;
height: 35px;
border-radius: 6px;
}
.speaker-button-group {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 30px;
}
#speakerLocker,
#speakerResender {
padding: 10px 20px;
margin: 20px auto;
padding: 12px 25px;
background-color: #007BFF;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s;
}
.h2 {
font-size: 25px;
}
.speakerView,
.speakerAudio,
.speakerWrite {
margin-top: auto;
margin-bottom: auto;
#speakerLocker:hover,
#speakerResender:hover {
background-color: #0056b3;
}
.container {
@@ -702,4 +801,10 @@ button:hover {
margin-top: 20px;
color: #333;
word-break: break-word;
}
.container input,
.container textarea,
.container select {
width: 100%;
}