fix:improve some styles
This commit is contained in:
parent
bfb3fb74c5
commit
07d8fd5e8e
|
|
@ -599,7 +599,8 @@ export function DigitalInnovationPage() {
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => handleProjectDetails(item)}
|
onClick={() => handleProjectDetails(item)}
|
||||||
className="text-pr-green hover:text-pr-green underline-offset-4 underline font-normal hover:bg-emerald-500/20 p-2 h-auto">
|
className="text-pr-green hover:text-pr-green underline-offset-4 underline font-normal hover:bg-emerald-500/20 p-2 h-auto"
|
||||||
|
>
|
||||||
جزئیات بیشتر
|
جزئیات بیشتر
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|
@ -948,7 +949,7 @@ export function DigitalInnovationPage() {
|
||||||
|
|
||||||
{/* Project Details Dialog */}
|
{/* Project Details Dialog */}
|
||||||
<Dialog open={detailsDialogOpen} onOpenChange={setDetailsDialogOpen}>
|
<Dialog open={detailsDialogOpen} onOpenChange={setDetailsDialogOpen}>
|
||||||
<DialogContent className="bg-[linear-gradient(to_bottom_left,#464861,50%,#111628)] max-w-5xl max-h-[80vh] overflow-y-auto">
|
<DialogContent className="bg-[linear-gradient(to_bottom_left,#464861,50%,#111628)] max-w-6xl max-h-[80vh] overflow-y-auto">
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle className="text-white mr-4 border-b-2 border-gray-600 pb-4 font-persian text-right">
|
<DialogTitle className="text-white mr-4 border-b-2 border-gray-600 pb-4 font-persian text-right">
|
||||||
شرح پروژه
|
شرح پروژه
|
||||||
|
|
@ -1006,7 +1007,7 @@ export function DigitalInnovationPage() {
|
||||||
</div>
|
</div>
|
||||||
<div className="digitalAbilityDevelopment flex flex-col gap-10 border-l-2 border-l-gray-600 px-5">
|
<div className="digitalAbilityDevelopment flex flex-col gap-10 border-l-2 border-l-gray-600 px-5">
|
||||||
<div className="flex flex-col gap-4">
|
<div className="flex flex-col gap-4">
|
||||||
<span className="text-md font-bold">
|
<span className="text-lg font-bold">
|
||||||
توسعه قابلیت های دیجیتال:{" "}
|
توسعه قابلیت های دیجیتال:{" "}
|
||||||
</span>
|
</span>
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
|
|
@ -1072,7 +1073,7 @@ export function DigitalInnovationPage() {
|
||||||
<div className="flex flex-col px-6 gap-4">
|
<div className="flex flex-col px-6 gap-4">
|
||||||
<div className="costBoard mx-auto w-full">
|
<div className="costBoard mx-auto w-full">
|
||||||
<div className="board o border border-gray-600 rounded-xl overflow-hidden flex flex-col">
|
<div className="board o border border-gray-600 rounded-xl overflow-hidden flex flex-col">
|
||||||
<span className="title bg-[#3F415A] text-white w-full p-2.5 pr-4 ">
|
<span className="text-sm bg-[#3F415A] text-white w-full p-2.5 pr-4 ">
|
||||||
کاهش هزینه ها
|
کاهش هزینه ها
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -674,7 +674,7 @@ export function ProcessInnovationPage() {
|
||||||
- Nice Max: 75 (گرد و خوانا)
|
- Nice Max: 75 (گرد و خوانا)
|
||||||
- Ticks: [0, 20, 40, 60, 75]
|
- Ticks: [0, 20, 40, 60, 75]
|
||||||
این باعث میشود نمودار زیباتر و خواناتر باشد */}
|
این باعث میشود نمودار زیباتر و خواناتر باشد */}
|
||||||
<BaseCard className="rounded-2xl w-full overflow-hidden">
|
<BaseCard className="rounded-xl w-full overflow-hidden">
|
||||||
<CustomBarChart
|
<CustomBarChart
|
||||||
title="تاثیرات فرآیندی به صورت درصد مقایسه ای"
|
title="تاثیرات فرآیندی به صورت درصد مقایسه ای"
|
||||||
loading={statsLoading}
|
loading={statsLoading}
|
||||||
|
|
@ -722,7 +722,7 @@ export function ProcessInnovationPage() {
|
||||||
{column.key === "select" ? (
|
{column.key === "select" ? (
|
||||||
<div className="flex items-center justify-center">
|
<div className="flex items-center justify-center">
|
||||||
<span></span>
|
<span></span>
|
||||||
</div>
|
</div>
|
||||||
) : column.sortable ? (
|
) : column.sortable ? (
|
||||||
<button
|
<button
|
||||||
onClick={() => handleSort(column.key)}
|
onClick={() => handleSort(column.key)}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { formatNumber, calculateNiceRange } from "~/lib/utils";
|
import { calculateNiceRange, formatNumber } from "~/lib/utils";
|
||||||
|
|
||||||
export interface BarChartData {
|
export interface BarChartData {
|
||||||
label: string;
|
label: string;
|
||||||
|
|
@ -18,7 +18,7 @@ interface CustomBarChartProps {
|
||||||
showAxisLabels?: boolean;
|
showAxisLabels?: boolean;
|
||||||
className?: string;
|
className?: string;
|
||||||
loading?: boolean;
|
loading?: boolean;
|
||||||
hasPercent ?: boolean
|
hasPercent?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CustomBarChart({
|
export function CustomBarChart({
|
||||||
|
|
@ -86,7 +86,7 @@ export function CustomBarChart({
|
||||||
return (
|
return (
|
||||||
<div key={index} className="flex items-center gap-3">
|
<div key={index} className="flex items-center gap-3">
|
||||||
<span
|
<span
|
||||||
className={`font-persian text-sm font-normal min-w-[120px] text-right ${
|
className={`font-persian text-sm font-normal min-w-[120px] text-left ${
|
||||||
item.labelColor || "text-white"
|
item.labelColor || "text-white"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|
@ -109,7 +109,8 @@ export function CustomBarChart({
|
||||||
<span className={`text-base font-normal text-left text-white`}>
|
<span className={`text-base font-normal text-left text-white`}>
|
||||||
{item.valuePrefix || ""}
|
{item.valuePrefix || ""}
|
||||||
|
|
||||||
{formatNumber(parseFloat(displayValue))}{ hasPercent ? "%" : ""}
|
{formatNumber(parseFloat(displayValue))}
|
||||||
|
{hasPercent ? "%" : ""}
|
||||||
{item.valueSuffix || ""}
|
{item.valueSuffix || ""}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user