Skip to content

Commit

Permalink
fix: max width
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed3on committed Oct 17, 2024
1 parent fab0b39 commit 9d66148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function createMetricsElement(
metricsElement.className = 'nutri-data-metrics';
metricsElement.style.display = 'grid';
metricsElement.style.margin = '0 auto';
metricsElement.style.width = 'max-content';
metricsElement.style.maxWidth = 'max-content';

if (metrics && nutrientInfo) {
Object.entries(metrics).forEach(([key, value]) => {
Expand Down

0 comments on commit 9d66148

Please sign in to comment.