Xin Zhang commited on
Commit
20896dc
·
1 Parent(s): 74f1d81

[fix]: update config modal layout.

Browse files
frontend/src/views/Welcome/index.vue CHANGED
@@ -141,9 +141,9 @@ const echoCancel = ref<boolean>(settingsStore.$state.echoCancel ?? true);
141
 
142
  const radioStyle = reactive({
143
  display: 'flex',
144
- height: '48px',
145
- lineHeight: '48px',
146
- fontSize: '18px',
147
  });
148
 
149
  const filteredRoles = computed(() => {
@@ -160,7 +160,7 @@ const fetchTTSRoles = async () => {
160
  // @ts-ignore
161
  roles.splice(0, data.length, ...data.models)
162
  console.log('Fetched TTS Roles:', roles);
163
-
164
  if (data.current_model_id) {
165
  role.value = data.current_model_id;
166
  }
@@ -178,7 +178,7 @@ const fetchASRLanguages = async () => {
178
  // @ts-ignore
179
  languages.splice(0, languages.length, ...data.languages);
180
  console.log('Fetched ASR Languages:', data.languages);
181
-
182
  if (data.current_asr_language) {
183
  language.value = data.current_asr_language;
184
  }
@@ -226,7 +226,7 @@ const toggleSider = () => {
226
  </a-button>
227
  </div>
228
 
229
- <a-modal v-model:open="modelOpen" :title="null">
230
  <template #footer>
231
  <a-button key="back" @click="handleCancel">Cancel</a-button>
232
  <a-button key="submit" type="primary" :loading="modalLoading" @click="handleSubmit">Submit</a-button>
@@ -267,11 +267,12 @@ const toggleSider = () => {
267
 
268
  .languages {
269
  margin-top: 40px;
270
- margin-bottom: 48px;
271
 
272
  p {
273
- font-size: 20px;
274
  font-weight: 500;
 
275
  }
276
  }
277
 
 
141
 
142
  const radioStyle = reactive({
143
  display: 'flex',
144
+ height: '36px',
145
+ lineHeight: '36px',
146
+ fontSize: '15px',
147
  });
148
 
149
  const filteredRoles = computed(() => {
 
160
  // @ts-ignore
161
  roles.splice(0, data.length, ...data.models)
162
  console.log('Fetched TTS Roles:', roles);
163
+
164
  if (data.current_model_id) {
165
  role.value = data.current_model_id;
166
  }
 
178
  // @ts-ignore
179
  languages.splice(0, languages.length, ...data.languages);
180
  console.log('Fetched ASR Languages:', data.languages);
181
+
182
  if (data.current_asr_language) {
183
  language.value = data.current_asr_language;
184
  }
 
226
  </a-button>
227
  </div>
228
 
229
+ <a-modal v-model:open="modelOpen" :title="null" :mask-closable="false" centered>
230
  <template #footer>
231
  <a-button key="back" @click="handleCancel">Cancel</a-button>
232
  <a-button key="submit" type="primary" :loading="modalLoading" @click="handleSubmit">Submit</a-button>
 
267
 
268
  .languages {
269
  margin-top: 40px;
270
+ margin-bottom: 8px;
271
 
272
  p {
273
+ font-size: 16px;
274
  font-weight: 500;
275
+ margin-bottom: 8px;
276
  }
277
  }
278