mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-10 17:46:02 +00:00
fix(ui) Add min width to the usage stats component (#10056)
This commit is contained in:
parent
7315e6c40d
commit
36e12f7524
@ -49,7 +49,12 @@ export default function FieldUsageStats({ expandedField }: Props) {
|
||||
<SectionHeader>Usage</SectionHeader>
|
||||
<UsageBarWrapper>
|
||||
<UsageBarBackground>
|
||||
<UsageBar width={((relevantUsageStats.count || 0) / maxFieldUsageCount) * USAGE_BAR_MAX_WIDTH} />
|
||||
<UsageBar
|
||||
width={Math.max(
|
||||
((relevantUsageStats.count || 0) / maxFieldUsageCount) * USAGE_BAR_MAX_WIDTH,
|
||||
4,
|
||||
)}
|
||||
/>
|
||||
</UsageBarBackground>
|
||||
<UsageTextWrapper>{relevantUsageStats.count || 0} queries / month</UsageTextWrapper>
|
||||
</UsageBarWrapper>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user