fix: arreglar tamaños y márgenes generales de la app

This commit is contained in:
Alexis
2026-03-26 14:01:39 +01:00
parent ddddfaef73
commit 9d12e81c90
3 changed files with 24 additions and 18 deletions
@@ -3,6 +3,7 @@ import { Outlet } from 'react-router-dom';
export default function MainLayout() { export default function MainLayout() {
return ( return (
<div className="min-h-screen bg-slate-50 font-sans text-slate-900"> <div className="min-h-screen bg-slate-50 font-sans text-slate-900">
{/* Cabecera */} {/* Cabecera */}
<header className="bg-white border-b border-slate-200 sticky top-0 z-50 shadow-sm"> <header className="bg-white border-b border-slate-200 sticky top-0 z-50 shadow-sm">
<div className="max-w-7xl mx-auto px-4 h-14 flex items-center gap-3"> <div className="max-w-7xl mx-auto px-4 h-14 flex items-center gap-3">
@@ -19,6 +20,7 @@ export default function MainLayout() {
<main className="max-w-7xl mx-auto px-4 py-6"> <main className="max-w-7xl mx-auto px-4 py-6">
<Outlet /> <Outlet />
</main> </main>
</div> </div>
); );
} }
+4
View File
@@ -1 +1,5 @@
@import "tailwindcss"; @import "tailwindcss";
body {
overflow-y: scroll;
}
+2 -2
View File
@@ -151,7 +151,7 @@ export default function AdvancedMode() {
<CriterionInput criterionName={criterionName} setCriterionName={handleCriterionChange} error={errors.criterion} /> <CriterionInput criterionName={criterionName} setCriterionName={handleCriterionChange} error={errors.criterion} />
<div ref={containerRef} className={`w-full mt-2 pb-4 pt-4 transition-all relative ${!isZoomActive && needsZoom ? 'overflow-x-auto flex justify-start px-4' : 'overflow-hidden flex justify-center'}`}> <div ref={containerRef} className={`w-full mt-2 transition-all relative ${!isZoomActive && needsZoom ? 'overflow-x-auto flex justify-start pb-8 pt-4 px-4' : 'overflow-hidden flex justify-center pb-8 pt-4'}`}>
<div className={`flex flex-row items-start min-w-max transition-transform duration-500 ease-out px-4 origin-top`} style={{ transform: `scale(${currentScale})`, marginBottom: isZoomActive && currentScale < 1 ? `-${(1 - currentScale) * 300}px` : '0px' }}> <div className={`flex flex-row items-start min-w-max transition-transform duration-500 ease-out px-4 origin-top`} style={{ transform: `scale(${currentScale})`, marginBottom: isZoomActive && currentScale < 1 ? `-${(1 - currentScale) * 300}px` : '0px' }}>
<div ref={tableRef} className="flex flex-row items-start relative px-10 overflow-visible"> <div ref={tableRef} className="flex flex-row items-start relative px-10 overflow-visible">
@@ -187,7 +187,7 @@ export default function AdvancedMode() {
{/* PASO 2 */} {/* PASO 2 */}
{step === 2 && ( {step === 2 && (
<div className="w-full max-w-6xl bg-white p-6 rounded-2xl shadow-sm border border-slate-200 animate-fade-in relative overflow-visible"> <div className="w-full bg-white p-6 rounded-2xl shadow-sm border border-slate-200 animate-fade-in relative overflow-visible">
<div className="flex justify-between items-center mb-6 border-b pb-3"> <div className="flex justify-between items-center mb-6 border-b pb-3">
<h2 className="text-xl font-bold text-slate-800">Paso 2: Modelar Conceptos Difusos</h2> <h2 className="text-xl font-bold text-slate-800">Paso 2: Modelar Conceptos Difusos</h2>
<button onClick={() => setStep(1)} className="text-slate-500 hover:text-blue-600 text-sm font-semibold underline"> Volver a las cartas</button> <button onClick={() => setStep(1)} className="text-slate-500 hover:text-blue-600 text-sm font-semibold underline"> Volver a las cartas</button>