= 100 ? "rounded-r-md" : undefined, className)}
- style={{ width: `${percent > 100 ? 100 : percent}%` }}
- >
- {text}
-
= 100 ? "rounded-r-md" : undefined, className)}
+ style={{ width: `${percent > 100 ? 100 : percent}%` }}
+ >
+ {text}
+
-
= 100 ? "rounded-r-md" : undefined, className)}
- style={{
- width: `${percent > 100 ? 100 : percent}%`,
- background: "repeating-linear-gradient(to right,#f55,#fa0,#ff5,#5f5,#5ff,#f5f,#a0a,#f55 16rem)"
- }}
- >
-
+ {percent > 0 && (
+
= 100 ? "rounded-r-md" : undefined, className)}
+ style={{
+ width: `${percent > 100 ? 100 : percent}%`,
+ background: "repeating-linear-gradient(to right,#f55,#fa0,#ff5,#5f5,#5ff,#f5f,#a0a,#f55 16rem)"
+ }}
+ >
+
+ )}
{percent < 100 && (
-
= 100 ? "rounded-r-md" : undefined, className)}
- style={{ width: `${percent > 100 ? 100 : percent}%` }}
- >
-
+ {percent > 0 && (
+
= 100 ? "rounded-r-md" : undefined, className)}
+ style={{ width: `${percent > 100 ? 100 : percent}%` }}
+ >
+
+ )}
{percent < 100 && (