From f44258d134dda61bed137a30de78e7daee4d1c38 Mon Sep 17 00:00:00 2001 From: Laux Dev <2201104208@student.buksu.edu.ph> Date: Fri, 13 Mar 2026 14:38:46 +0800 Subject: [PATCH] add responsiveness --- .../buttons/primarybutton/styles.module.css | 2 +- frontend/src/app/components/icons/publish.jsx | 22 +++ .../src/app/components/icons/viewLogs.jsx | 23 +++ .../src/app/components/sidebar/Sidebar.jsx | 61 ++++++-- .../app/components/sidebar/styles.module.css | 28 +++- .../app/components/topHeader/TopHeader.jsx | 18 ++- .../components/topHeader/styles.module.css | 7 +- frontend/src/app/credentials/card/Card.jsx | 25 ++++ .../app/credentials/card/styles.module.css | 42 ++++++ frontend/src/app/credentials/page.jsx | 66 +++++---- .../src/app/credentials/styles.module.css | 11 ++ frontend/src/app/globals.css | 12 ++ frontend/src/app/hooks/useIsMobile.jsx | 15 ++ .../app/organization/add/styles.module.css | 4 +- frontend/src/app/organization/card/Card.jsx | 25 ++++ .../app/organization/card/styles.module.css | 42 ++++++ frontend/src/app/organization/page.jsx | 71 +++++---- .../src/app/organization/styles.module.css | 15 +- .../src/app/projects/add/styles.module.css | 4 +- frontend/src/app/projects/page.jsx | 137 ++++++++++-------- .../src/app/projects/project-card/Card.jsx | 46 ++++++ .../projects/project-card/styles.module.css | 48 ++++++ frontend/src/app/projects/styles.module.css | 23 ++- .../projects/view/add-from-scratch/page.jsx | 4 +- frontend/src/app/projects/view/page.jsx | 2 +- .../src/app/projects/view/styles.module.css | 10 +- .../AddConfigMap/AddConfigMapModal.jsx | 2 +- .../AddVolumes/AddVolumeModal.jsx | 2 +- 28 files changed, 617 insertions(+), 150 deletions(-) create mode 100644 frontend/src/app/components/icons/publish.jsx create mode 100644 frontend/src/app/components/icons/viewLogs.jsx create mode 100644 frontend/src/app/credentials/card/Card.jsx create mode 100644 frontend/src/app/credentials/card/styles.module.css create mode 100644 frontend/src/app/hooks/useIsMobile.jsx create mode 100644 frontend/src/app/organization/card/Card.jsx create mode 100644 frontend/src/app/organization/card/styles.module.css create mode 100644 frontend/src/app/projects/project-card/Card.jsx create mode 100644 frontend/src/app/projects/project-card/styles.module.css diff --git a/frontend/src/app/components/buttons/primarybutton/styles.module.css b/frontend/src/app/components/buttons/primarybutton/styles.module.css index 0df0348..223f4c6 100644 --- a/frontend/src/app/components/buttons/primarybutton/styles.module.css +++ b/frontend/src/app/components/buttons/primarybutton/styles.module.css @@ -1,6 +1,6 @@ .button { display: flex; - padding: 7px 15px; + padding: 8px 12px; justify-content: center; align-items: center; gap: 10px; diff --git a/frontend/src/app/components/icons/publish.jsx b/frontend/src/app/components/icons/publish.jsx new file mode 100644 index 0000000..697c2ae --- /dev/null +++ b/frontend/src/app/components/icons/publish.jsx @@ -0,0 +1,22 @@ +import React from "react"; + +const PublishIcon = () => { + return ( + + + + ); +}; + +export default PublishIcon; diff --git a/frontend/src/app/components/icons/viewLogs.jsx b/frontend/src/app/components/icons/viewLogs.jsx new file mode 100644 index 0000000..102c4ab --- /dev/null +++ b/frontend/src/app/components/icons/viewLogs.jsx @@ -0,0 +1,23 @@ +import React from "react"; + +const ViewLogsIcon = () => { + return ( + + + + ); +}; + +export default ViewLogsIcon; diff --git a/frontend/src/app/components/sidebar/Sidebar.jsx b/frontend/src/app/components/sidebar/Sidebar.jsx index fa6bb22..b8d70a6 100644 --- a/frontend/src/app/components/sidebar/Sidebar.jsx +++ b/frontend/src/app/components/sidebar/Sidebar.jsx @@ -1,5 +1,5 @@ "use client"; -import React from "react"; +import React, { useState } from "react"; import styles from "./styles.module.css"; import { usePathname, useRouter } from "next/navigation"; @@ -15,6 +15,7 @@ import LogoIcon from "../icons/logo"; const Sidebar = () => { const router = useRouter(); + const [isCollapsed, setIsCollapsed] = useState(false); const navToHome = () => { router.push("/home"); }; @@ -40,15 +41,19 @@ const Sidebar = () => { const pathname = usePathname(); console.log(pathname); return ( -
+
{/* Logo Container */}
- + setIsCollapsed(!isCollapsed)} />
-
+

Internal Developer Platform

By Project Moonshot Inc.

@@ -61,49 +66,77 @@ const Sidebar = () => { onClick={navToHome} > -

Home

+

+ Home +

-

Organization

+

+ Organization +

-

Project

+

+ Project +

-

Users

+

+ Users +

-

Roles

+

+ Roles +

-

Credentials

+

+ Credentials +

-

Agents

+

+ Agents +

@@ -111,7 +144,11 @@ const Sidebar = () => {
-

Download ICTL v3

+

+ Download ICTL v3 +

diff --git a/frontend/src/app/components/sidebar/styles.module.css b/frontend/src/app/components/sidebar/styles.module.css index fece52f..406660e 100644 --- a/frontend/src/app/components/sidebar/styles.module.css +++ b/frontend/src/app/components/sidebar/styles.module.css @@ -11,6 +11,7 @@ user-select: none; border-right: 1px solid #2c2d3d; background: #191a24; + transition: all 150ms; } .topContainer { display: flex; @@ -142,7 +143,7 @@ } .navFooterContainer > div > div { display: flex; - width: 186px; + width: 100%; justify-content: space-between; align-items: center; flex: 1 0 0; @@ -155,3 +156,28 @@ font-weight: 500; line-height: normal; } +.collapsed { + width: 80px; +} +.noDisplay { + display: none; +} +.blockDisplay { + display: block; +} +@media (max-width: 1050px) { + .mainContainer { + width: 80px; + } + .label { + display: none; + } +} +@media (max-width: 768px) { + .mainContainer { + display: none; + } + .label { + display: none; + } +} diff --git a/frontend/src/app/components/topHeader/TopHeader.jsx b/frontend/src/app/components/topHeader/TopHeader.jsx index 1971e84..c2c0bfd 100644 --- a/frontend/src/app/components/topHeader/TopHeader.jsx +++ b/frontend/src/app/components/topHeader/TopHeader.jsx @@ -21,6 +21,9 @@ import EditIcon from "../icons/edit"; import UpdateIcon from "../icons/update"; import SecondaryButton from "../buttons/secondaryButton/SecondaryButton"; import SearchBar from "../searchbar/SearchBar"; +import ViewLogsIcon from "../icons/viewLogs"; +import PublishIcon from "../icons/publish"; +import useIsMobile from "@/app/hooks/useIsMobile"; const TopHeader = (props) => { const [triggerDropDownMenu, setTriggerDropDownMenu] = useState(false); @@ -32,6 +35,7 @@ const TopHeader = (props) => { const handleNavigateToAdd = () => { router.push(`${pathName}/add`); }; + const isMobile = useIsMobile(); return ( <> {triggerAlert && ( @@ -83,7 +87,7 @@ const TopHeader = (props) => { {props?.requiredButtons.includes("add") && ( } - text={props?.buttonText} + text={isMobile ? "" : props?.buttonText} onClick={handleNavigateToAdd} /> )} @@ -167,6 +171,18 @@ const TopHeader = (props) => {
{triggerDropDownMenu && (
+
+
+ +

View Logs

+
+
+
+
+ +

Publish Service

+
+
diff --git a/frontend/src/app/components/topHeader/styles.module.css b/frontend/src/app/components/topHeader/styles.module.css index 616ff87..ad0538a 100644 --- a/frontend/src/app/components/topHeader/styles.module.css +++ b/frontend/src/app/components/topHeader/styles.module.css @@ -35,9 +35,9 @@ .title > div:hover path { stroke: white; } -.title > p { +.title p { color: #d2d3e1; - font-size: 24px; + font-size: var(--title-font-size); font-style: normal; font-weight: 400; line-height: normal; @@ -120,7 +120,7 @@ flex-direction: column; align-items: flex-start; gap: 6px; - z-index: 2; + z-index: 11; border-radius: 6px; background: #2d3144; box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.25); @@ -167,4 +167,5 @@ font-style: normal; font-weight: 500; line-height: normal; + z-index: 13; } diff --git a/frontend/src/app/credentials/card/Card.jsx b/frontend/src/app/credentials/card/Card.jsx new file mode 100644 index 0000000..3c2bc12 --- /dev/null +++ b/frontend/src/app/credentials/card/Card.jsx @@ -0,0 +1,25 @@ +import DeleteIcon from "@/app/components/icons/delete"; +import React from "react"; +import styles from "./styles.module.css"; + +const Card = (props) => { + return ( +
+
+
+

Name

+

mongo tls ca crt

+
+
+

Organization ID

+

67160a5ae69144ff19aafb86

+
+
+
+ +
+
+ ); +}; + +export default Card; diff --git a/frontend/src/app/credentials/card/styles.module.css b/frontend/src/app/credentials/card/styles.module.css new file mode 100644 index 0000000..6968492 --- /dev/null +++ b/frontend/src/app/credentials/card/styles.module.css @@ -0,0 +1,42 @@ +.cardContainer { + display: flex; + padding: 16px 0; + align-items: flex-start; + gap: 16px; + align-self: stretch; + border-bottom: 1px solid #2c2d3d; +} +.cardDetails { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; + flex: 1 0 0; +} +.list { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 5px; + align-self: stretch; +} +.list p { + color: #85869b; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; +} + +.list p:nth-child(2) { + color: #eeeffd; + font-family: Inter; + font-size: 16px; + font-weight: 500; +} +.cardAction { + display: flex; + align-items: center; + gap: 17px; +} diff --git a/frontend/src/app/credentials/page.jsx b/frontend/src/app/credentials/page.jsx index e1b5fe5..30a55d8 100644 --- a/frontend/src/app/credentials/page.jsx +++ b/frontend/src/app/credentials/page.jsx @@ -1,3 +1,4 @@ +"use client"; import React from "react"; import TopHeader from "../components/topHeader/TopHeader"; import globalStyle from "../globalStyle.module.css"; @@ -5,7 +6,10 @@ import styles from "./styles.module.css"; import DeleteIcon from "../components/icons/delete"; import SuccessToast from "../components/toast/success/successToast"; import ActionButton from "../components/actionButton/ActionButton"; +import useIsMobile from "../hooks/useIsMobile"; +import Card from "./card/Card"; const CredentialsPage = () => { + const isMobile = useIsMobile(); const sampleData = [ { name: "mongo tls ca crt", @@ -66,33 +70,43 @@ const CredentialsPage = () => { topbarTitle="Credentials" requiredButtons={["title", "add", "search", "env"]} /> -
- - - - - - - - + {isMobile ? ( +
+ + + + + +
+ ) : ( +
+
NameOrganization ID
+ + + + + + + - - {sampleData.map((org, index) => { - return ( - - - - - - ); - })} - -
NameOrganization ID
{org.name}{org.organizationID} -
- } /> -
-
-
+ + {sampleData.map((org, index) => { + return ( + + {org.name} + {org.organizationID} + +
+ } /> +
+ + + ); + })} + + +
+ )}
diff --git a/frontend/src/app/credentials/styles.module.css b/frontend/src/app/credentials/styles.module.css index 3e8b3ec..e46bc21 100644 --- a/frontend/src/app/credentials/styles.module.css +++ b/frontend/src/app/credentials/styles.module.css @@ -52,3 +52,14 @@ font-weight: 500; line-height: normal; } +.cardContainer { + display: flex; + padding: 0 16px; + padding-bottom: 50px; + height: calc(100vh - 170px); + flex-direction: column; + align-items: flex-start; + gap: 12px; + align-self: stretch; + overflow: auto; +} diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 120a0f5..2bac78e 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -1,6 +1,8 @@ :root { --background: #d2d3e0; --foreground: #191a24; + --table-font-size: 13px; + --title-font-size: 24px; } @media (prefers-color-scheme: dark) { @@ -51,3 +53,13 @@ a { border-radius: 2px; background: #34384c; } +@media (max-width: 900px) { + :root { + --table-font-size: 11px; + } +} +@media (max-width: 500px) { + :root { + --title-font-size: 18px; + } +} diff --git a/frontend/src/app/hooks/useIsMobile.jsx b/frontend/src/app/hooks/useIsMobile.jsx new file mode 100644 index 0000000..3ab084c --- /dev/null +++ b/frontend/src/app/hooks/useIsMobile.jsx @@ -0,0 +1,15 @@ +import { useState, useEffect } from "react"; + +export default function useIsMobile(breakpoint = 768) { + const [isMobile, setIsMobile] = useState(window.innerWidth <= breakpoint); + + useEffect(() => { + const handleResize = () => { + setIsMobile(window.innerWidth <= breakpoint); + }; + window.addEventListener("resize", handleResize); + return () => window.removeEventListener("resize", handleResize); + }, [breakpoint]); + + return isMobile; +} diff --git a/frontend/src/app/organization/add/styles.module.css b/frontend/src/app/organization/add/styles.module.css index aacd6c8..2b05299 100644 --- a/frontend/src/app/organization/add/styles.module.css +++ b/frontend/src/app/organization/add/styles.module.css @@ -36,6 +36,7 @@ justify-content: center; align-items: center; gap: 32px; + width: min(100%, 500px); } .organizationBadgeContainer { display: flex; @@ -105,7 +106,6 @@ } .labels > p { color: #d2d3e1; - color: color(display-p3 0.8235 0.8275 0.8784); font-family: Inter; font-size: 16px; font-style: normal; @@ -122,10 +122,10 @@ } .inputGroup { display: flex; - width: 500px; flex-direction: column; align-items: flex-start; gap: 12px; + width: 100%; } .inputLabel { display: flex; diff --git a/frontend/src/app/organization/card/Card.jsx b/frontend/src/app/organization/card/Card.jsx new file mode 100644 index 0000000..fa1b170 --- /dev/null +++ b/frontend/src/app/organization/card/Card.jsx @@ -0,0 +1,25 @@ +import DeleteIcon from "@/app/components/icons/delete"; +import React from "react"; +import styles from "./styles.module.css"; + +const Card = (props) => { + return ( +
+
+
+

Organization Name

+

ProjectMoonShot Inc.

+
+
+

Date Created

+

2024-10-21 08:01:30.556 +0000 UTC

+
+
+
+ +
+
+ ); +}; + +export default Card; diff --git a/frontend/src/app/organization/card/styles.module.css b/frontend/src/app/organization/card/styles.module.css new file mode 100644 index 0000000..6968492 --- /dev/null +++ b/frontend/src/app/organization/card/styles.module.css @@ -0,0 +1,42 @@ +.cardContainer { + display: flex; + padding: 16px 0; + align-items: flex-start; + gap: 16px; + align-self: stretch; + border-bottom: 1px solid #2c2d3d; +} +.cardDetails { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; + flex: 1 0 0; +} +.list { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 5px; + align-self: stretch; +} +.list p { + color: #85869b; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; +} + +.list p:nth-child(2) { + color: #eeeffd; + font-family: Inter; + font-size: 16px; + font-weight: 500; +} +.cardAction { + display: flex; + align-items: center; + gap: 17px; +} diff --git a/frontend/src/app/organization/page.jsx b/frontend/src/app/organization/page.jsx index a02a7bd..6c25a31 100644 --- a/frontend/src/app/organization/page.jsx +++ b/frontend/src/app/organization/page.jsx @@ -1,13 +1,16 @@ -"use-client"; -import React from "react"; +"use client"; +import React, { useEffect, useState } from "react"; import styles from "./styles.module.css"; import TopHeader from "../components/topHeader/TopHeader"; import globalStyle from "../globalStyle.module.css"; import SuccessToast from "../components/toast/success/successToast"; import DeleteIcon from "../components/icons/delete"; import ActionButton from "../components/actionButton/ActionButton"; +import Card from "./card/Card"; +import useIsMobile from "../hooks/useIsMobile"; const OrganizationPage = () => { + const isMobile = useIsMobile(); const sampleData = [ { organizationName: "Project Moonshot Inc.", @@ -64,33 +67,45 @@ const OrganizationPage = () => { topbarTitle="Organization" requiredButtons={["title", "add", "search"]} /> -
- - - - - - - - + {isMobile ? ( +
+ + + + + + + +
+ ) : ( +
+
Organization NameDate Created
+ + + + + + + - - {sampleData.map((org, index) => { - return ( - - - - - - ); - })} - -
Organization NameDate Created
{org.organizationName}{org.dateCreated} -
- } /> -
-
-
+ + {sampleData.map((org, index) => { + return ( + + {org.organizationName} + {org.dateCreated} + +
+ } /> +
+ + + ); + })} + + +
+ )}
diff --git a/frontend/src/app/organization/styles.module.css b/frontend/src/app/organization/styles.module.css index 19c934d..e9672e7 100644 --- a/frontend/src/app/organization/styles.module.css +++ b/frontend/src/app/organization/styles.module.css @@ -30,7 +30,7 @@ .tableContainer > table > tbody > tr > td { color: #eeeffd; font-family: Inter; - font-size: 13px; + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; @@ -46,8 +46,19 @@ .tableContainer > table > thead > tr > th { color: #85869b; font-family: Inter; - font-size: 13px; + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; } +.cardContainer { + display: flex; + padding: 0 16px; + padding-bottom: 50px; + height: calc(100vh - 170px); + flex-direction: column; + align-items: flex-start; + gap: 12px; + align-self: stretch; + overflow: auto; +} diff --git a/frontend/src/app/projects/add/styles.module.css b/frontend/src/app/projects/add/styles.module.css index 7bbb7c2..033b958 100644 --- a/frontend/src/app/projects/add/styles.module.css +++ b/frontend/src/app/projects/add/styles.module.css @@ -14,10 +14,12 @@ align-items: center; gap: 24px; border-radius: 8px; + + width: min(100%, 500px); } .inputGroup { display: flex; - width: 500px; + width: 100%; flex-direction: column; align-items: flex-start; gap: 12px; diff --git a/frontend/src/app/projects/page.jsx b/frontend/src/app/projects/page.jsx index 6d9d336..ba50b51 100644 --- a/frontend/src/app/projects/page.jsx +++ b/frontend/src/app/projects/page.jsx @@ -8,8 +8,11 @@ import SuccessToast from "../components/toast/success/successToast"; import DeleteIcon from "../components/icons/delete"; import ViewIcon from "../components/icons/view"; import ActionButton from "../components/actionButton/ActionButton"; +import useIsMobile from "../hooks/useIsMobile"; +import Card from "./project-card/Card"; const ProjectsPage = () => { const router = useRouter(); + const isMobile = useIsMobile(); const sampleData = [ { name: "DOKS One Cooperative Bank Backend Develop", @@ -177,67 +180,81 @@ const ProjectsPage = () => { topbarTitle="Project" requiredButtons={["title", "add", "search"]} /> -
- - - - - - - - - - - - - - {sampleData.map((project, index) => { - return ( - router.push("/projects/view")} - > - - - - - - - + + ); + })} + +
NameVersionCPU Used/LimitMemory Used/LimitStorage Used/LimitDate Created
{project.name}{project.version} - {project.cpuUsed} /{" "} - {project.cpuLimit} - - - {project.memoryUsed} - {" "} - /{" "} - - {project.memoryLimit} - - - - {project.storageUsed} - {" "} - /{" "} - - {project.storageLimit} - - {project.dateCreated} -
-
- } /> + {isMobile ? ( +
+ + + + +
+ ) : ( +
+ + + + + + + + + + + + + + {sampleData.map((project, index) => { + return ( + router.push("/projects/view")} + > + + + + + + + - - ); - })} - -
NameVersionCPU Used/LimitMemory Used/LimitStorage Used/LimitDate Created
{project.name} + {project.version} + + {project.cpuUsed}{" "} + /{" "} + + {project.cpuLimit} + + + + {project.memoryUsed} + {" "} + /{" "} + + {project.memoryLimit} + + + + {project.storageUsed} + {" "} + /{" "} + + {project.storageLimit} + + {project.dateCreated} +
+
+ } /> +
+
+ } /> +
-
- } /> -
- -
-
+
+
+ )} diff --git a/frontend/src/app/projects/project-card/Card.jsx b/frontend/src/app/projects/project-card/Card.jsx new file mode 100644 index 0000000..a6571b0 --- /dev/null +++ b/frontend/src/app/projects/project-card/Card.jsx @@ -0,0 +1,46 @@ +import DeleteIcon from "@/app/components/icons/delete"; +import React from "react"; +import styles from "./styles.module.css"; + +const Card = () => { + return ( +
+
+
+

Name

+

DOKS One Cooperative Bank Backend Develop

+
+
+

CPU Used/Limit

+

+ 13500 /{" "} + 20000 +

+
+
+

Memory Used/Limit

+

+ 13500 /{" "} + 20000 +

+
+
+

Storage Used/Limit

+

+ 10000 /{" "} + 1000000 +

+
+
+

Date Created

+

2025-11-07 01:43:18.313 +0000 UTC

+
+
+
+ +
+
+ ); +}; + +export default Card; diff --git a/frontend/src/app/projects/project-card/styles.module.css b/frontend/src/app/projects/project-card/styles.module.css new file mode 100644 index 0000000..86042c7 --- /dev/null +++ b/frontend/src/app/projects/project-card/styles.module.css @@ -0,0 +1,48 @@ +.cardContainer { + display: flex; + padding: 16px 0; + align-items: flex-start; + gap: 16px; + align-self: stretch; + border-bottom: 1px solid #2c2d3d; +} +.cardDetails { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 8px; + flex: 1 0 0; +} +.list { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 5px; + align-self: stretch; +} +.list p { + color: #85869b; + font-family: Inter; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: normal; +} + +.list p:nth-child(2) { + color: #eeeffd; + font-family: Inter; + font-size: 16px; + font-weight: 500; +} +.cardAction { + display: flex; + align-items: center; + gap: 17px; +} +.used { + color: #50d85f; +} +.limit { + color: #85869b; +} diff --git a/frontend/src/app/projects/styles.module.css b/frontend/src/app/projects/styles.module.css index efe6f21..e57aab3 100644 --- a/frontend/src/app/projects/styles.module.css +++ b/frontend/src/app/projects/styles.module.css @@ -19,7 +19,7 @@ } .tableContainer > table > thead > tr > th { - text-wrap: nowrap; + text-wrap: wrap; } .tableContainer > table > thead > tr > th, @@ -36,7 +36,7 @@ .tableContainer > table > tbody > tr > td { color: #eeeffd; font-family: Inter; - font-size: 13px; + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; @@ -52,7 +52,7 @@ .tableContainer > table > thead > tr > th { color: #85869b; font-family: Inter; - font-size: 13px; + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; @@ -67,7 +67,8 @@ .used { color: #50d85f; font-family: Inter; - font-size: 13px; + + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; @@ -75,8 +76,20 @@ .limit { color: #85869b; font-family: Inter; - font-size: 13px; + + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; } +.cardContainer { + display: flex; + padding: 0 16px; + padding-bottom: 50px; + height: calc(100vh - 170px); + flex-direction: column; + align-items: flex-start; + gap: 12px; + align-self: stretch; + overflow: auto; +} diff --git a/frontend/src/app/projects/view/add-from-scratch/page.jsx b/frontend/src/app/projects/view/add-from-scratch/page.jsx index cd356cc..0c3a0d1 100644 --- a/frontend/src/app/projects/view/add-from-scratch/page.jsx +++ b/frontend/src/app/projects/view/add-from-scratch/page.jsx @@ -17,7 +17,7 @@ const AddServices = () => { const [triggerVariableDropDown, setTriggerVariableDropDown] = useState(false); const [triggerAddVariable, setTriggerAddVariable] = useState(false); const [triggerAddVolume, setTriggerAddVolume] = useState(false); - const [triggeAddConfigMap, setTriggerAddConfigMap] = useState(false); + const [triggerAddConfigMap, setTriggerAddConfigMap] = useState(false); const { register, @@ -55,7 +55,7 @@ const AddServices = () => { {triggerAddVolume && ( )} - {triggeAddConfigMap && ( + {triggerAddConfigMap && ( )}
diff --git a/frontend/src/app/projects/view/page.jsx b/frontend/src/app/projects/view/page.jsx index c18db89..5405c0c 100644 --- a/frontend/src/app/projects/view/page.jsx +++ b/frontend/src/app/projects/view/page.jsx @@ -116,7 +116,7 @@ const AddProject = () => { Version Health Status - Image + Image Ingress Port Actions diff --git a/frontend/src/app/projects/view/styles.module.css b/frontend/src/app/projects/view/styles.module.css index 2e2466f..7c09cfd 100644 --- a/frontend/src/app/projects/view/styles.module.css +++ b/frontend/src/app/projects/view/styles.module.css @@ -18,7 +18,8 @@ text-wrap: nowrap; color: #85869b; font-family: Inter; - font-size: 13px; + z-index: 5; + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; @@ -39,7 +40,8 @@ color: #eeeffd; font-family: Inter; overflow-wrap: anywhere; - font-size: 13px; + + font-size: var(--table-font-size); font-style: normal; font-weight: 500; line-height: normal; @@ -56,8 +58,9 @@ .servicesHealth, .servicesStatus { display: flex; - align-items: center; + align-items: start; gap: 4px; + width: 100%; align-self: stretch; } .servicesHealth > div, @@ -128,6 +131,7 @@ display: flex; align-items: center; gap: 10px; + align-self: stretch; } .iconButton { diff --git a/frontend/src/app/projects/view/variableModals/AddConfigMap/AddConfigMapModal.jsx b/frontend/src/app/projects/view/variableModals/AddConfigMap/AddConfigMapModal.jsx index 93e5653..f3c01cc 100644 --- a/frontend/src/app/projects/view/variableModals/AddConfigMap/AddConfigMapModal.jsx +++ b/frontend/src/app/projects/view/variableModals/AddConfigMap/AddConfigMapModal.jsx @@ -69,7 +69,7 @@ const AddConfigMapModal = (props) => {
- + } />
diff --git a/frontend/src/app/projects/view/variableModals/AddVolumes/AddVolumeModal.jsx b/frontend/src/app/projects/view/variableModals/AddVolumes/AddVolumeModal.jsx index 307b824..440fcc2 100644 --- a/frontend/src/app/projects/view/variableModals/AddVolumes/AddVolumeModal.jsx +++ b/frontend/src/app/projects/view/variableModals/AddVolumes/AddVolumeModal.jsx @@ -61,7 +61,7 @@ const AddVolumeModal = (props) => {
- + } />