mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
style: responsive empty state for profile stats (#1911)
This commit is contained in:
parent
8d5018318d
commit
64b5ba196f
@ -12,10 +12,10 @@ type Props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const ProfilePriorityDistribution: React.FC<Props> = ({ userProfile }) => (
|
export const ProfilePriorityDistribution: React.FC<Props> = ({ userProfile }) => (
|
||||||
<div className="space-y-2">
|
<div className="flex flex-col space-y-2">
|
||||||
<h3 className="text-lg font-medium">Issues by Priority</h3>
|
<h3 className="text-lg font-medium">Issues by Priority</h3>
|
||||||
{userProfile ? (
|
{userProfile ? (
|
||||||
<div className="border border-custom-border-100 rounded">
|
<div className="flex-grow border border-custom-border-100 rounded">
|
||||||
{userProfile.priority_distribution.length > 0 ? (
|
{userProfile.priority_distribution.length > 0 ? (
|
||||||
<BarGraph
|
<BarGraph
|
||||||
data={userProfile.priority_distribution.map((priority) => ({
|
data={userProfile.priority_distribution.map((priority) => ({
|
||||||
@ -63,7 +63,7 @@ export const ProfilePriorityDistribution: React.FC<Props> = ({ userProfile }) =>
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="p-7">
|
<div className="flex-grow p-7">
|
||||||
<ProfileEmptyState
|
<ProfileEmptyState
|
||||||
title="No Data yet"
|
title="No Data yet"
|
||||||
description="Create issues to view the them by priority in the graph for better analysis."
|
description="Create issues to view the them by priority in the graph for better analysis."
|
||||||
|
@ -16,9 +16,9 @@ export const ProfileStateDistribution: React.FC<Props> = ({ stateDistribution, u
|
|||||||
if (!userProfile) return null;
|
if (!userProfile) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-2">
|
<div className="flex flex-col space-y-2">
|
||||||
<h3 className="text-lg font-medium">Issues by State</h3>
|
<h3 className="text-lg font-medium">Issues by State</h3>
|
||||||
<div className="border border-custom-border-100 rounded p-7">
|
<div className="flex-grow border border-custom-border-100 rounded p-7">
|
||||||
{userProfile.state_distribution.length > 0 ? (
|
{userProfile.state_distribution.length > 0 ? (
|
||||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-x-6">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-x-6">
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user