1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-24 08:02:18 +02:00

Style fix

This commit is contained in:
Piero Toffanin 2021-10-26 16:04:50 -04:00
parent a1244b9e3e
commit 9d95e07d82
2 changed files with 8 additions and 10 deletions

View File

@ -496,7 +496,7 @@ def create_app(args):
name: file
type: file
required: true
description: file to translate
description: File to translate
- in: formData
name: source
schema:
@ -573,7 +573,7 @@ def create_app(args):
file = request.files['file']
if not file:
abort(400, description="Invalid request: missing q parameter")
abort(400, description="Invalid request: missing file parameter")
if not source_lang:
abort(400, description="Invalid request: missing source parameter")
if not target_lang:

View File

@ -105,7 +105,7 @@
<div class="container">
<div class="row">
<h3 class="header center">Translation API</h3>
<div class="col s12 mb-1" v-if="filesTranslation === true">
<div class="col s12 mb-1 center" v-if="filesTranslation === true">
<button type="button" class="btn btn-switch-type" @click="switchType('text')" :class="{'active': translationType === 'text'}"><i class="material-icons left">title</i>Translate text</button>
<button type="button" class="btn btn-switch-type" @click="switchType('files')" :class="{'active': translationType === 'files'}"><i class="material-icons left">description</i>Translate files</button>
</div>
@ -190,12 +190,10 @@
</div>
<div v-if="inputFile !== false" class="dropzone-content">
<div class="card">
<div class="card-content">
<div class="row">
<div class="col s10">
<p>[[ inputFile.name ]]</p>
</div>
<div class="col s2">
<div class="card-content" style="padding-right: 6px;">
<div class="row mb-0">
<div class="col s12">
[[ inputFile.name ]]
<button v-if="loadingFileTranslation !== true" @click="removeFile" class="btn-flat">
<i class="material-icons">close</i>
</button>
@ -216,7 +214,7 @@
</div>
</div>
<div class="section no-pad-bot">
<div class="section no-pad-bot" v-if="translationType !== 'files'">
<div class="container">
<div class="row center">
<div class="col s12 m12">