diff --git a/app/ActivosMantenimiento/Page.module.css b/app/ActivosMantenimiento/Page.module.css index 8f3544d..ef4cfa4 100644 --- a/app/ActivosMantenimiento/Page.module.css +++ b/app/ActivosMantenimiento/Page.module.css @@ -1,71 +1,82 @@ .tableContainer { - margin-top: 10px; - overflow-y: auto; - overflow-x: auto; - border-radius: 4px; - border: 1px solid #cfcfcf; - max-height: 430px; - scrollbar-color: rgb(1, 92, 184) rgba(0, 0, 0, 0); - background-color: #f9f9f9; - width: 100%; + margin-top: 10px; + overflow-y: auto; + overflow-x: auto; + border-radius: 4px; + border: 1px solid #cfcfcf; + max-height: 430px; + scrollbar-color: rgb(1, 92, 184) rgba(0, 0, 0, 0); + background-color: #f9f9f9; + width: 100%; } .machineTable { - width: 100%; - border-collapse: collapse; - table-layout: auto; + width: 100%; + border-collapse: collapse; + table-layout: auto; } .machineTable th, .machineTable td { - padding: 10px; - text-align: center; - border-bottom: 1px solid #cfcfcf; - word-wrap: break-word; - overflow-wrap: break-word; + padding: 10px; + text-align: center; + border-bottom: 1px solid #cfcfcf; + word-wrap: break-word; + overflow-wrap: break-word; } .machineTable th { - position: sticky; - top: 0px; - background-color: rgb(1, 92, 184); - color: white; + position: sticky; + top: 0px; + background-color: rgb(1, 92, 184); + color: white; } .machineTable tr { - min-width: 400px; + min-width: 400px; } .disponible { - display: flex; - width: 100%; - height: 100%; - background-color: green; - color: green; - font-weight: bold; + display: flex; + width: 100%; + height: 100%; + background-color: green; + color: green; + font-weight: bold; } .ocupado { - color: red; - font-weight: bold; + color: red; + font-weight: bold; } - .actions { - text-align: center; + text-align: center; } .resetButton { - padding: 8px 16px; - background-color: #ff4d4d; - color: white; - border: none; - border-radius: 6px; - cursor: pointer; - font-weight: bold; - transition: 0.3s; + padding: 8px 16px; + background-color: #ff4d4d; + color: white; + border: none; + border-radius: 6px; + cursor: pointer; + font-weight: bold; + transition: 0.3s; } .resetButton:hover { - background-color: #cc0000; -} \ No newline at end of file + background-color: #cc0000; +} +.checkbox-grid label { + display: inline-flex; + align-items: center; + font-size: 13px; + cursor: pointer; +} + +.checkbox-grid input[type="checkbox"] { + margin: 0; + padding: 0; + transform: scale(1); /* mantiene el tamaño */ +} diff --git a/app/ActivosMantenimiento/page.tsx b/app/ActivosMantenimiento/page.tsx index ec94896..c828edc 100644 --- a/app/ActivosMantenimiento/page.tsx +++ b/app/ActivosMantenimiento/page.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import SearchUser from "../Components/SearchUser/searchUser"; import Toggle from "../Components/Toggle/Toggle"; -// Assuming you will create this new component export default function Page() { const [tiempo, setTiempo] = useState(""); @@ -10,10 +9,9 @@ export default function Page() { return (
-

EQUIPOS ACTIVOS Y EN MANTENIMIENTO

+

EQUIPOS ACTIVOS Y EN MANTENIMIENTO

- {/* Toggle component for 'Asignar' and 'Liberar' tabs */} setTiempo(e.target.value)} > - - - - - - + + + + + + @@ -88,25 +91,27 @@ export default function Page() { content: ( <> - +
-
- + +
+ @@ -117,10 +122,7 @@ export default function Page() { }, ]} /> - - {/* This is the new component to display available tables */}
); } -//IO \ No newline at end of file diff --git a/app/Components/BarNavigation/BarNavigation.css b/app/Components/BarNavigation/BarNavigation.css index f82e516..0418e63 100644 --- a/app/Components/BarNavigation/BarNavigation.css +++ b/app/Components/BarNavigation/BarNavigation.css @@ -17,6 +17,7 @@ color: white; font-weight: bold; width: 100%; + transition: background-color 0.3s ease; } .barNavigation li:hover { @@ -65,7 +66,7 @@ top: 100%; width: 100%; background-color: rgba(0, 61, 121, 1); - transition: max-height 0.3s ease, opacity 0.3s ease; + transition: color 0.3s ease, opacity 0.3s ease; } .subMenu.open ul { diff --git a/app/Components/BarNavigation/BarNavigation.tsx b/app/Components/BarNavigation/BarNavigation.tsx index 30948cf..488dafa 100644 --- a/app/Components/BarNavigation/BarNavigation.tsx +++ b/app/Components/BarNavigation/BarNavigation.tsx @@ -9,8 +9,11 @@ function BarNavigation() { const toggleMenu = () => setOpenMenu(!openMenu); const toggleSubMenu = (index: number) => { - setOpenSubMenu(openSubMenu === index ? null : index); + if (typeof window !== "undefined" && window.innerWidth <= 800) { + setOpenSubMenu(openSubMenu === index ? null : index); + } }; + return (