Skip to content

Commit 674b222

Browse files
committed
correct css
1 parent 284cd56 commit 674b222

File tree

1 file changed

+73
-58
lines changed

1 file changed

+73
-58
lines changed

frontend/src/components/Finder.css

Lines changed: 73 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -459,61 +459,6 @@
459459
background-color: #fff;
460460
}
461461

462-
.results-table-container {
463-
width: 100%;
464-
display: flex;
465-
justify-content: center; /* centra el contenido */
466-
margin-top: 1.5rem;
467-
overflow-x: auto; /* mantiene scroll si hay muchas columnas */
468-
}
469-
470-
.results-table {
471-
width: 100%; /* ocupa un 80% del ancho disponible */
472-
max-width: 1200px; /* límite superior */
473-
border-collapse: collapse;
474-
table-layout: auto ; /* columnas equilibradas */
475-
background-color: #fff;
476-
border: 1px solid #ddd;
477-
border-radius: 8px;
478-
overflow: hidden;
479-
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
480-
}
481-
482-
.results-table th,
483-
.results-table td {
484-
padding: 10px 14px;
485-
white-space: nowrap; /* permite saltos de línea si hay espacios */
486-
word-break: normal; /* no corta palabras */
487-
overflow-wrap: anywhere; /* corta solo si hay texto muy largo sin espacios (URLs, etc.) */
488-
text-align: center;
489-
}
490-
491-
.results-table th {
492-
background-color: #f8f9fa;
493-
font-weight: 600;
494-
}
495-
496-
.results-section {
497-
display: flex;
498-
flex-direction: column;
499-
align-items: center; /* centra el bloque completo horizontalmente */
500-
margin-top: 2rem;
501-
}
502-
503-
.results-header {
504-
position: relative;
505-
width: 80%; /* igual que la tabla */
506-
max-width: 1200px; /* límite superior */
507-
margin-bottom: 1rem;
508-
}
509-
510-
.results-header .section-title {
511-
text-align: center;
512-
font-size: 1.8rem;
513-
font-weight: 600;
514-
color: #333;
515-
margin: 0;
516-
}
517462

518463
.download-button {
519464
position: absolute;
@@ -638,21 +583,85 @@
638583
font-weight: 500;
639584
}
640585

586+
.results-table-container {
587+
width: 100%;
588+
display: flex;
589+
justify-content: center;
590+
margin-top: 1.5rem;
591+
overflow-x: auto;
592+
overflow-y: visible;
593+
padding: 0 1rem; /* espacio lateral para evitar que se corte */
594+
}
595+
596+
.results-table {
597+
width: auto;
598+
min-width: 60%;
599+
max-width: 90%;
600+
border-collapse: collapse;
601+
table-layout: auto;
602+
background-color: #fff;
603+
border: 1px solid #d0d7de;
604+
border-radius: 8px;
605+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
606+
}
607+
608+
.results-table th,
609+
.results-table td {
610+
padding: 10px 16px;
611+
white-space: normal; /* permite líneas múltiples */
612+
word-break: keep-all; /* NO corta palabras completas */
613+
overflow-wrap: break-word; /* permite romper solo si no cabe */
614+
text-align: center; /* mejora legibilidad */
615+
vertical-align: top;
616+
max-width: none; /* evita límite de ancho heredado */
617+
}
618+
641619
.results-table th {
642-
padding: 8px 12px;
643620
background-color: #f9fafc;
644-
border-bottom: 2px solid #d0d7de;
645-
text-align: center;
646621
font-weight: 600;
622+
border-bottom: 2px solid #d0d7de;
647623
cursor: pointer;
648624
transition: background-color 0.2s ease, color 0.2s ease;
625+
position: sticky;
626+
top: 0; /* encabezado fijo al hacer scroll */
627+
z-index: 2;
649628
}
650629

651630
.results-table th:hover {
652631
background-color: #eef4ff;
653632
color: #1a4fd0;
654633
}
655634

635+
.results-table tr:nth-child(even) {
636+
background-color: #fafafa; /* filas alternadas para mejor lectura */
637+
}
638+
639+
.results-table tr:hover {
640+
background-color: #f0f6ff; /* destaca la fila al pasar el ratón */
641+
}
642+
643+
.results-section {
644+
display: flex;
645+
flex-direction: column;
646+
align-items: center;
647+
margin-top: 2rem;
648+
}
649+
650+
.results-header {
651+
position: relative;
652+
width: 80%;
653+
max-width: 1200px;
654+
margin-bottom: 1rem;
655+
}
656+
657+
.results-header .section-title {
658+
text-align: center;
659+
font-size: 1.8rem;
660+
font-weight: 600;
661+
color: #333;
662+
margin: 0;
663+
}
664+
656665
.results-table th.sorted-asc::after {
657666
content: " ▲";
658667
color: #1a4fd0;
@@ -663,4 +672,10 @@
663672
content: " ▼";
664673
color: #1a4fd0;
665674
font-size: 0.8em;
675+
}
676+
677+
@media (min-width: 1200px) {
678+
.results-table {
679+
max-width: 1000px; /* límite visual en pantallas grandes */
680+
}
666681
}

0 commit comments

Comments
 (0)