mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
3c2f5d12ed
* chore: add next theme and initial setup * chore: add dark mode colors to layouts * chore: user general setting page theming * chore: dashboard theming * chore: project page theming * chore: workspace setting page theming * chore: my issue page theming * chore: cmdk theming * chore: change hardcode bg and text color to theme * chore: change color name according to the design * style: fix card in the dashboard * style: fix merge conflict design issues * style: add light high contrast and dark high contrast * style: fix cmd k menu color and selection * feat: change theme from cmdk menu * chore: add multiple theme field to custom theme * chore: removed custom theming * fix: build error --------- Co-authored-by: Saheb Giri <iamsahebgiri@gmail.com>
33 lines
817 B
TypeScript
33 lines
817 B
TypeScript
import React from "react";
|
|
|
|
type IssueLabelsListProps = {
|
|
labels?: (string | undefined)[];
|
|
length?: number;
|
|
showLength?: boolean;
|
|
};
|
|
|
|
export const IssueLabelsList: React.FC<IssueLabelsListProps> = ({
|
|
labels,
|
|
length = 5,
|
|
showLength = true,
|
|
}) => (
|
|
<>
|
|
{labels && (
|
|
<>
|
|
{labels.slice(0, length).map((color, index) => (
|
|
<div className={`flex h-4 w-4 rounded-full ${index ? "-ml-3.5" : ""}`}>
|
|
<span
|
|
className={`h-4 w-4 flex-shrink-0 rounded-full border border-brand-base
|
|
`}
|
|
style={{
|
|
backgroundColor: color && color !== "" ? color : "#000000",
|
|
}}
|
|
/>
|
|
</div>
|
|
))}
|
|
{labels.length > length ? <span>+{labels.length - length}</span> : null}
|
|
</>
|
|
)}
|
|
</>
|
|
);
|