fixed styles

This commit is contained in:
2026-02-19 17:52:17 -06:00
committed by frcarlos
parent b185a96eee
commit b7bee2d1fd
9 changed files with 54 additions and 55 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
"use client"; "use client";
import { envConfig } from "@/app/lib/config"; import { envConfig } from "@/app/lib/config";
import axios from "axios";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import axios from "axios";
interface Periodo { interface Periodo {
id_periodo: number; id_periodo: number;
@@ -114,7 +114,7 @@ export default function Inscripciones() {
</div> </div>
</form> </form>
<div style={{background:"#f9f9f9", top:"-1000px"}}> <div style={{overflowY:"auto",scrollbarWidth:"none", background:""}}>
<table> <table>
<thead> <thead>
<tr> <tr>
+2 -2
View File
@@ -81,7 +81,6 @@ export default function Page() {
return ( return (
<section className="containerSection"> <section className="containerSection">
{}
{modo === "ver" && ( {modo === "ver" && (
<section className="containersection"> <section className="containersection">
<h3 className="title">PROGRAMAS</h3> <h3 className="title">PROGRAMAS</h3>
@@ -106,7 +105,8 @@ export default function Page() {
</button> </button>
<button <button
className={`button buttonSearch ${styleprograms.button}`} className={`button buttonSearch`}
style={{margin:"5px"}}
onClick={handleNuevo} onClick={handleNuevo}
> >
Nuevo Nuevo
+1 -5
View File
@@ -6,8 +6,4 @@
} }
.margin { .margin {
margin: 10px 10px; margin: 10px 10px;
} }
.button {
margin-left: 20px;
margin-top: 20px;
}
@@ -5,7 +5,6 @@ import Toggle from "@/app/Components/Global/Toggle/Toggle";
import SearchDateBetween from "@/app/Components/SearchDateBetween/SearchDateBetween"; import SearchDateBetween from "@/app/Components/SearchDateBetween/SearchDateBetween";
import PorServicios from "@/app/Components/Reportes/porServicio"; import PorServicios from "@/app/Components/Reportes/porServicio";
import PorRecibos from "@/app/Components/Reportes/porRecibo"; import PorRecibos from "@/app/Components/Reportes/porRecibo";
import DownloadReporteXLSX from "@/app/Components/Dowload/Reporte";
export default function ReportesClient({ export default function ReportesClient({
defaultKey, defaultKey,
@@ -51,57 +51,59 @@ function BitacoraEquipo({ date }: { date: string | null }) {
return ( return (
<> <>
<label>Seleccione un equipo</label> <label>Seleccione un equipo</label>
<div className="containerForm">
<div className="groupInput"> <div className="groupInput">
<div
className={`customSelect ${open ? "open" : ""} ${loadingEquipos ? "disabled" : ""}`}
>
<div <div
className={`selectHeader ${equipoSeleccionado && equipoSeleccionado.plataforma?.nombre?.toUpperCase()}`} className={`customSelect ${open ? "open" : ""} ${loadingEquipos ? "disabled" : ""}`}
onClick={() => !loadingEquipos && setOpen(!open)}
> >
{equipoSeleccionado ? ( <div
<span className={`selectHeader ${equipoSeleccionado && equipoSeleccionado.plataforma?.nombre?.toUpperCase()}`}
> onClick={() => !loadingEquipos && setOpen(!open)}
{equipoSeleccionado.ubicacion}{" "} >
{equipoSeleccionado.nombre_equipo} {equipoSeleccionado ? (
</span> <span
) : ( >
<span className="placeholder"> {equipoSeleccionado.ubicacion}{" "}
{loadingEquipos {equipoSeleccionado.nombre_equipo}
? "Cargando equipos..." </span>
: "Seleccione un equipo"} ) : (
</span> <span className="placeholder">
)} {loadingEquipos
? "Cargando equipos..."
<span className="arrow">{open ? "▲" : "▼"}</span> : "Seleccione un equipo"}
</div> </span>
{open && (
<div className="options" style={{ bottom: "auto" }}>
{equipos.length === 0 && (
<div className="option disabled">
No hay equipos disponibles
</div>
)} )}
{equipos.map((eq) => ( <span className="arrow">{open ? "▲" : "▼"}</span>
<div
key={eq.id_equipo}
className={`option ${eq.plataforma?.nombre?.toUpperCase()}`}
onClick={() => {
setEquipoSeleccionado(eq);
setOpen(false);
}}
>
{eq.ubicacion} {eq.nombre_equipo}
</div>
))}
</div> </div>
)}
{open && (
<div className="options" style={{ bottom: "auto" }}>
{equipos.length === 0 && (
<div className="option disabled">
No hay equipos disponibles
</div>
)}
{equipos.map((eq) => (
<div
key={eq.id_equipo}
className={`option ${eq.plataforma?.nombre?.toUpperCase()}`}
onClick={() => {
setEquipoSeleccionado(eq);
setOpen(false);
}}
>
{eq.ubicacion} {eq.nombre_equipo}
</div>
))}
</div>
)}
</div>
</div> </div>
<SearchDate />
</div> </div>
<SearchDate />
<div> <div>
<table> <table>
<thead> <thead>
@@ -14,7 +14,7 @@ export default function TableSanction({ alumnoSanciones, alumno }: Props) {
}; };
return ( return (
<div style={{ margin: "1rem 0" }}> <div style={{ margin: "1rem 0", maxWidth:"730px"}}>
<table> <table>
<thead> <thead>
<tr> <tr>
@@ -38,7 +38,7 @@ function QuitarSancion({ id_cuenta }: { id_cuenta: number }) {
return ( return (
<section className="containerSection"> <section className="containerSection">
<TableSanction alumnoSanciones={alumnoSanciones} alumno={alumno} /> <TableSanction alumnoSanciones={alumnoSanciones} alumno={alumno} />
{(alumnoSanciones?.length > 0) && {(alumnoSanciones?.length > 0) &&
<button <button
className="button buttonSearch" className="button buttonSearch"
+1
View File
@@ -4,6 +4,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 1rem;
} }
.selectionItem { .selectionItem {
+1
View File
@@ -102,6 +102,7 @@ footer p {
.containerForm { .containerForm {
width: 100%; width: 100%;
max-width: 450px; max-width: 450px;
gap: 1rem;
} }
.img { .img {