fix(mail): revert marginBottom hack — layout was breaking out of card
Mein letzter marginBottom:-28 Versuch hat den Donut-Wrapper Layout-Width durcheinandergebracht — Donut ragte links aus der Card. Zurück zum clean Layout ohne negative Margin. Kleine vertikale Asymmetrie zwischen Donut-Center-Number und Legend-Mitte bleibt akzeptiert. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
778d3b6746
commit
1d93ada275
@ -106,19 +106,12 @@ export function MailDistributionChart({ data, hero, totalBlocked, isLegend }: Pr
|
||||
gap: 20,
|
||||
}}
|
||||
>
|
||||
{/* Donut-Box ist visuell asymmetrisch (Bogen oben, Center-Number bei
|
||||
~70% der Box-Höhe). Negativer marginBottom zieht die effektive
|
||||
Box hoch sodass alignItems:center die Legend gegenüber der
|
||||
visuellen Donut-Mitte (Center-Number) zentriert statt gegen die
|
||||
SVG-Bounding-Box-Mitte. */}
|
||||
<View style={{ marginBottom: -28 }}>
|
||||
<HalfDonut
|
||||
segments={segments}
|
||||
centerValue={centerValue}
|
||||
centerLabel={centerLabel}
|
||||
width={DONUT_WIDTH}
|
||||
/>
|
||||
</View>
|
||||
<View style={{ gap: 6, flex: 1, minWidth: 0 }}>
|
||||
{slices.map((slice) => (
|
||||
<LegendRow key={slice.label} slice={slice} colors={colors} />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user