Skip to content

Commit

Permalink
fixes (#1466)
Browse files Browse the repository at this point in the history
* added module card desc

* added local

* added

* css update

---------

Co-authored-by: NabeelAyubee <nayubi7@gmail.com>
  • Loading branch information
nabeelmd-eGov and NabeelAyubee authored Oct 7, 2024
1 parent 9864eba commit 7d15c9f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-css",
"version": "1.8.2-beta.35",
"version": "1.8.2-beta.36",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <jagan.kumar@egov.org.in>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
}

.chart-metric-wrapper{
display: flex;
display: flex;
align-items: baseline;
flex-wrap: wrap;
margin-top: 15px;
justify-content: space-evenly;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,3 +646,11 @@ digit-card-text.center {
.infotext {
width: 20rem !important;
}
.mrsm.divToBeHidden.icon-label-download {
align-items: center !important;
}
.chart-metric-wrapper {
.row {
align-items: baseline !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ import { Link } from "react-router-dom";
import FaqComponent from "../../citizen/FAQs/FaqComponent";

const CardC = ({ type, title, content, actions, style }) => {
const { t } = useTranslation();
const ListTag = type === "number" ? "ol" : "ul";
return (
<div>
{/* <div style={{ border: "1px solid #ccc", borderRadius: "8px", padding: "16px", margin: "16px", ...style }}> */}
<CardSectionHeader>{title}</CardSectionHeader>
<CardSectionSubText style={{ marginTop: "1rem" }}>{content}</CardSectionSubText>
<CardSectionHeader>{t(title)}</CardSectionHeader>
<CardSectionSubText style={{ marginTop: "1rem" }}>{t(content)}</CardSectionSubText>
<div style={{ marginTop: "1rem" }}>
{actions && (
<ListTag>
{actions.map((action, index) => (
<li key={index} style={{ listStyleType: ListTag === "ul" ? "disc" : "auto", margin: "8px 0" }}>
{action?.label ? <strong>{action?.label}:</strong> : null} {action.description}
{action?.label ? <strong>{t(action?.label)}:</strong> : null} {t(action?.description)}
</li>
))}
</ListTag>
Expand All @@ -28,10 +29,11 @@ const CardC = ({ type, title, content, actions, style }) => {
};

const FAQ = ({ key, title, content, faqs }) => {
const { t } = useTranslation();
return (
<div style={{ width: "100%" }}>
<CardSectionHeader>{title}</CardSectionHeader>
<CardSectionSubText style={{ marginTop: "1rem" }}>{content}</CardSectionSubText>
<CardSectionHeader>{t(title)}</CardSectionHeader>
<CardSectionSubText style={{ marginTop: "1rem" }}>{t(content)}</CardSectionSubText>
<div style={{ width: "100%" }}>
{faqs.map((faq, i) => (
<FaqComponent key={"faq_" + i} question={faq.question} answer={faq.answer} lastIndex={i === faqs?.length - 1} />
Expand Down Expand Up @@ -64,7 +66,7 @@ const QuickSetup = ({ cardConfig }) => {
return (
<Card className={"sandbox-guide"} style={{ width: "25rem", height: "47rem", overflowY: "scroll" }}>
{/* <Card style={{ height: "47rem", overflowY: "scroll" }}> */}
<CardHeader>Guide To Sandbox</CardHeader>
<CardHeader>{t("GUIDE_TO_SETUP")}</CardHeader>
<div style={{ display: "flex", flexWrap: "wrap" }}>
{cardConfig.map((config, index) => {
return config?.type === "faqs" ? (
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.8.2-beta.35/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.8.2-beta.36/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.34/dist/index.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#00bcd1" />
Expand Down

0 comments on commit 7d15c9f

Please sign in to comment.