260825_03_ENH: sub item 버튼 위치 및 범례 위치 변경

This commit is contained in:
2026-08-25 15:54:40 +09:00
parent c08bc5a808
commit fbd22a1471

View File

@@ -190,7 +190,7 @@ function ResultGroupChart({ group }: { group: ResultGroup }) {
},
};
})}
legend={{ left: 0, top: 0, textStyle: { fontSize: CHART_FONT_SIZE } }}
legend={{ right: 0, top: 0, textStyle: { fontSize: CHART_FONT_SIZE } }}
grid={{ top: 55, right: 25, bottom: 5, left: 0, containLabel: true }}
xAxis={{
axisLabel: {
@@ -277,12 +277,11 @@ function ItemCard({ item }: { item: Item }) {
</Button>
</div>
</div>
{activeComment &&
<p className="mt-2 text-xs text-muted-foreground">{activeComment}</p>
}
{hasSubItems || activeComment ? (
<div className="mt-4 flex flex-wrap items-center gap-3">
<div className="min-w-0 flex-1">
{activeComment ? <p className="text-xs text-muted-foreground">{activeComment}</p> : null}
</div>
{hasSubItems ? (
<div className="inline-flex shrink-0 rounded-md border p-1">
{item.resultGroups.map((group, index) => {