diff --git a/src/components/Common/StatusBadgeMini/index.tsx b/src/components/Common/StatusBadgeMini/index.tsx index a7e24a37..083f76db 100644 --- a/src/components/Common/StatusBadgeMini/index.tsx +++ b/src/components/Common/StatusBadgeMini/index.tsx @@ -15,16 +15,21 @@ const StatusBadgeMini = ({ status, is4k = false, inProgress = false, - shrink = false, + shrink = true, }: StatusBadgeMiniProps) => { const badgeStyle = [ - `rounded-full bg-opacity-80 shadow-md ${ - shrink ? 'w-4 sm:w-5 border p-0' : 'w-5 ring-1 p-0.5' + `bg-opacity-80 shadow-md w-full h-full pl-3.5 md:pl-4 ${ + shrink ? 'border' : 'ring-1' }`, ]; let indicatorIcon: React.ReactNode; + // clip-path not directly supported in Tailwind. + const triangleStyle = { + clipPath: 'polygon(100% 0, 100% 100%, 0 0)', + }; + switch (status) { case MediaStatus.PROCESSING: badgeStyle.push( @@ -58,11 +63,13 @@ const StatusBadgeMini = ({ return (
-
{indicatorIcon}
+
+ {indicatorIcon} +
{is4k && 4K}
);