update styles
This commit is contained in:
@@ -31,11 +31,6 @@ const data = [
|
||||
checks: 5,
|
||||
violations: 4
|
||||
},
|
||||
{
|
||||
name: 'File F',
|
||||
checks: 5,
|
||||
violations: 3
|
||||
}
|
||||
];
|
||||
|
||||
export default async function Page() {
|
||||
|
||||
@@ -31,7 +31,7 @@ export const PieChartComponent = ({ data }: {
|
||||
data={data}
|
||||
cx="50%"
|
||||
cy="50%"
|
||||
innerRadius={75}
|
||||
innerRadius={65}
|
||||
outerRadius={100}
|
||||
paddingAngle={0}
|
||||
dataKey="value"
|
||||
|
||||
@@ -149,7 +149,7 @@ export const StackedBarChart = ({ data }: Files) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="protection-stat relative">
|
||||
<div className="stacked-bar-chart-wrapper">
|
||||
<div className="stacked-bar-chart">
|
||||
<BarChart
|
||||
style={{ width: '100%', maxWidth: '600px', maxHeight: '210px', aspectRatio: 1.618 }}
|
||||
|
||||
@@ -75,10 +75,7 @@
|
||||
|
||||
.protection-stat {
|
||||
padding: 15px;
|
||||
/* background: rgba(255, 255, 255, 0.1); */
|
||||
/* background-color: v.$b-color-1; */
|
||||
/* background-color: v.$bg-light; */
|
||||
box-shadow: 0 4px 20px v.$shadow-1;
|
||||
border: 1px solid v.$b-color-2;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -123,6 +120,7 @@
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 5px;
|
||||
color: v.$p-color;
|
||||
|
||||
&.btn {
|
||||
user-select: none;
|
||||
@@ -143,22 +141,12 @@
|
||||
}
|
||||
|
||||
&-total-info {
|
||||
position: absolute;
|
||||
top: 10;
|
||||
left: 10;
|
||||
/* background-color: #1f293718; */
|
||||
box-shadow: 0 4px 20px v.$shadow-1;
|
||||
padding: 10px;
|
||||
border-radius: 10;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.stacked-bar-chart {
|
||||
border-radius: 10;
|
||||
width: 100%;
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
&-drop-down-list {
|
||||
@@ -193,10 +181,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
&:has(.stacked-bar-chart) {
|
||||
height: 100%;
|
||||
padding-left: 100px;
|
||||
}
|
||||
|
||||
.stacked-bar-chart-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.stacked-bar-chart {
|
||||
border-radius: 10;
|
||||
width: 100%;
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&-switch {
|
||||
|
||||
Reference in New Issue
Block a user