kemuriririn commited on
Commit
f3cf788
·
1 Parent(s): 1bd39bb

update for random btns

Browse files
Files changed (1) hide show
  1. templates/arena.html +42 -2
templates/arena.html CHANGED
@@ -7,13 +7,22 @@
7
  {% block content %}
8
  <div class="tabs">
9
  <div class="tab active" data-tab="tts">TTS</div>
10
- {# <div class="tab" data-tab="conversational">Conversational</div>#}
11
  </div>
12
 
13
  <div id="tts-tab" class="tab-content active">
14
  <form class="input-container">
15
  <div class="input-group">
16
- <label for="voice-file">Upload reference voice:</label>
 
 
 
 
 
 
 
 
 
 
17
  <input type="file" id="voice-file" accept="audio/*">
18
  <audio id="voice-preview" controls style="display:none;"></audio>
19
  </div>
@@ -123,6 +132,37 @@
123
  overflow: hidden;
124
  }
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  /* Override base styles to remove duplicate borders */
127
  .input-group .text-input {
128
  flex: 1;
 
7
  {% block content %}
8
  <div class="tabs">
9
  <div class="tab active" data-tab="tts">TTS</div>
 
10
  </div>
11
 
12
  <div id="tts-tab" class="tab-content active">
13
  <form class="input-container">
14
  <div class="input-group">
15
+ <button type="button" class="segmented-btn random-voice-btn" title="Roll random voice">
16
+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"
17
+ stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
18
+ class="lucide lucide-shuffle-icon lucide-shuffle">
19
+ <path d="m18 14 4 4-4 4"/>
20
+ <path d="m18 2 4 4-4 4"/>
21
+ <path d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22"/>
22
+ <path d="M2 6h1.972a4 4 0 0 1 3.6 2.2"/>
23
+ <path d="M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45"/>
24
+ </svg>
25
+ </button>
26
  <input type="file" id="voice-file" accept="audio/*">
27
  <audio id="voice-preview" controls style="display:none;"></audio>
28
  </div>
 
132
  overflow: hidden;
133
  }
134
 
135
+ .voice-input-container {
136
+ display: flex;
137
+ align-items: center;
138
+ margin-top: 8px;
139
+ position: relative;
140
+ }
141
+
142
+ .random-voice-btn {
143
+ height: 36px;
144
+ width: 36px;
145
+ background-color: white;
146
+ border: 1px solid var(--border-color);
147
+ border-radius: var(--radius);
148
+ margin-right: 10px;
149
+ flex-shrink: 0;
150
+ }
151
+
152
+ .random-voice-btn:hover {
153
+ background-color: var(--light-gray);
154
+ }
155
+
156
+ .random-voice-btn svg {
157
+ color: var(--primary-color);
158
+ }
159
+
160
+ /* 保持音频控件在按钮旁边显示 */
161
+ #voice-preview {
162
+ margin-left: 10px;
163
+ }
164
+
165
+
166
  /* Override base styles to remove duplicate borders */
167
  .input-group .text-input {
168
  flex: 1;