victorafarias commited on
Commit
94288d8
·
1 Parent(s): 6282352

Implementação da responsividade

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. static/style.css +1 -1
  3. templates/index.html +7 -22
app.py CHANGED
@@ -449,9 +449,9 @@ def merge():
449
 
450
  # Atualizar o template de merge com os parâmetros de tamanho padrão
451
  updated_merge_template = PROMPT_ATOMICO_MERGE.replace(
452
- "MIN_CHARS_PLACEHOLDER", "24000"
453
  ).replace(
454
- "MAX_CHARS_PLACEHOLDER", "30000"
455
  )
456
 
457
  prompt_merge = PromptTemplate(template=updated_merge_template, input_variables=["solicitacao_usuario", "texto_para_analise_grok", "texto_para_analise_sonnet", "texto_para_analise_gemini"])
 
449
 
450
  # Atualizar o template de merge com os parâmetros de tamanho padrão
451
  updated_merge_template = PROMPT_ATOMICO_MERGE.replace(
452
+ "MIN_CHARS_PLACEHOLDER", str(min_chars)
453
  ).replace(
454
+ "MAX_CHARS_PLACEHOLDER", str(max_chars)
455
  )
456
 
457
  prompt_merge = PromptTemplate(template=updated_merge_template, input_variables=["solicitacao_usuario", "texto_para_analise_grok", "texto_para_analise_sonnet", "texto_para_analise_gemini"])
static/style.css CHANGED
@@ -395,7 +395,7 @@ textarea.drag-over {
395
  border: 1px solid #ddd;
396
  border-radius: 8px;
397
  background-color: #f8f9fa;
398
- width: 60%;
399
  }
400
 
401
  #final-result-container h2 {
 
395
  border: 1px solid #ddd;
396
  border-radius: 8px;
397
  background-color: #f8f9fa;
398
+ width: 70%;
399
  }
400
 
401
  #final-result-container h2 {
templates/index.html CHANGED
@@ -39,12 +39,6 @@
39
  margin-bottom: 0;
40
  }
41
 
42
- #final-result-container {
43
- display: none;
44
- width: 100%;
45
- margin-top: 20px;
46
- }
47
-
48
  .results-container .result-column {
49
  flex: 1;
50
  min-width: 0;
@@ -52,13 +46,6 @@
52
 
53
  /* ESTILOS RESPONSIVOS */
54
 
55
- /* Container principal */
56
- .container {
57
- max-width: 1200px;
58
- margin: 0 auto;
59
- padding: 10px;
60
- }
61
-
62
  /* Header responsivo */
63
  .header-container {
64
  display: flex;
@@ -216,15 +203,14 @@
216
  background-color: #218838;
217
  }
218
 
219
- /* Output boxes responsivos */
220
  .output-box {
221
  padding: 15px;
222
  border: 1px solid #dee2e6;
223
  border-top: none;
224
  background-color: #ffffff;
225
  min-height: 300px;
226
- max-height: 600px;
227
- overflow-y: auto;
228
  font-size: 14px;
229
  line-height: 1.6;
230
  word-wrap: break-word;
@@ -318,6 +304,7 @@
318
 
319
  .switch {
320
  transform: scale(1.2);
 
321
  }
322
 
323
  .refresh-btn {
@@ -364,7 +351,7 @@
364
  .output-box {
365
  font-size: 16px;
366
  padding: 12px;
367
- max-height: 400px;
368
  }
369
 
370
  .cancel-btn {
@@ -416,7 +403,7 @@
416
  .output-box {
417
  padding: 10px;
418
  font-size: 14px;
419
- max-height: 300px;
420
  }
421
 
422
  .floating-merge-btn {
@@ -429,9 +416,7 @@
429
 
430
  /* Ajustes para modo landscape em mobile */
431
  @media (max-height: 500px) and (orientation: landscape) {
432
- .output-box {
433
- max-height: 200px;
434
- }
435
 
436
  .loader-content {
437
  padding: 10px;
@@ -1067,4 +1052,4 @@ Use o botão `Converter para MD` para ver a mágica.</textarea>
1067
  window.addEventListener('resize', handleOrientationChange);
1068
  </script>
1069
  </body>
1070
- </html>
 
39
  margin-bottom: 0;
40
  }
41
 
 
 
 
 
 
 
42
  .results-container .result-column {
43
  flex: 1;
44
  min-width: 0;
 
46
 
47
  /* ESTILOS RESPONSIVOS */
48
 
 
 
 
 
 
 
 
49
  /* Header responsivo */
50
  .header-container {
51
  display: flex;
 
203
  background-color: #218838;
204
  }
205
 
206
+ /* Output boxes responsivos - SEM BARRA DE ROLAGEM INDIVIDUAL */
207
  .output-box {
208
  padding: 15px;
209
  border: 1px solid #dee2e6;
210
  border-top: none;
211
  background-color: #ffffff;
212
  min-height: 300px;
213
+ /* REMOVIDO: max-height e overflow-y */
 
214
  font-size: 14px;
215
  line-height: 1.6;
216
  word-wrap: break-word;
 
304
 
305
  .switch {
306
  transform: scale(1.2);
307
+ margin-right: 37px;
308
  }
309
 
310
  .refresh-btn {
 
351
  .output-box {
352
  font-size: 16px;
353
  padding: 12px;
354
+ /* REMOVIDO: max-height */
355
  }
356
 
357
  .cancel-btn {
 
403
  .output-box {
404
  padding: 10px;
405
  font-size: 14px;
406
+ /* REMOVIDO: max-height */
407
  }
408
 
409
  .floating-merge-btn {
 
416
 
417
  /* Ajustes para modo landscape em mobile */
418
  @media (max-height: 500px) and (orientation: landscape) {
419
+ /* REMOVIDO: ajuste de max-height dos output-box */
 
 
420
 
421
  .loader-content {
422
  padding: 10px;
 
1052
  window.addEventListener('resize', handleOrientationChange);
1053
  </script>
1054
  </body>
1055
+ </html>