@tipp/ui 2.10.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3083,6 +3083,7 @@ function ScoreSummary({
3083
3083
 
3084
3084
  // src/app/roleplay/parts/score-trend-section.tsx
3085
3085
  var import_react68 = require("react");
3086
+ var import_date_fns4 = require("date-fns");
3086
3087
 
3087
3088
  // src/molecules/expand-table/index.tsx
3088
3089
  var import_react_table2 = require("@tanstack/react-table");
@@ -4316,6 +4317,11 @@ function useTokenColors(vars) {
4316
4317
 
4317
4318
  // src/app/roleplay/parts/score-trend-section.tsx
4318
4319
  var import_jsx_runtime120 = require("react/jsx-runtime");
4320
+ function formatDateOnly(iso) {
4321
+ const d = new Date(iso);
4322
+ if (Number.isNaN(d.getTime())) return iso;
4323
+ return (0, import_date_fns4.format)(d, "M/d");
4324
+ }
4319
4325
  function Section4({
4320
4326
  title,
4321
4327
  desc,
@@ -4355,7 +4361,7 @@ function AttemptCell({ row }) {
4355
4361
  );
4356
4362
  }
4357
4363
  function DateCell({ row }) {
4358
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children: formatDate(row.original.createdAt) });
4364
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Typo, { as: "span", mono: true, style: { color: "var(--gray-9)" }, variant: "body", children: formatDateOnly(row.original.createdAt) });
4359
4365
  }
4360
4366
  function ScoreCell({ row }) {
4361
4367
  var _a;
@@ -4453,32 +4459,34 @@ function ScoreTrendSection({
4453
4459
  const columns = (0, import_react68.useMemo)(() => {
4454
4460
  const h = (0, import_react_table2.createColumnHelper)();
4455
4461
  return [
4462
+ // autoSize 컬럼에선 size가 최소폭으로 동작(1fr로 늘어남). 모바일(iPhone SE 375px,
4463
+ // 가용 ≈343px)에서 grid 최소폭 합이 화면을 넘지 않도록 작게 잡는다.
4456
4464
  h.display({
4457
4465
  id: "attempt",
4458
4466
  header: "\uD68C\uCC28",
4459
- size: 120,
4460
- meta: { autoSize: true, align: "left" },
4467
+ size: 116,
4468
+ meta: { align: "left" },
4461
4469
  cell: AttemptCell
4462
4470
  }),
4463
4471
  h.display({
4464
4472
  id: "date",
4465
4473
  header: "\uB0A0\uC9DC",
4466
- size: 130,
4474
+ size: 76,
4467
4475
  meta: { align: "left" },
4468
4476
  cell: DateCell
4469
4477
  }),
4470
4478
  h.display({
4471
4479
  id: "score",
4472
4480
  header: "\uCD1D\uC810",
4473
- size: 80,
4481
+ size: 64,
4474
4482
  meta: { align: "right" },
4475
4483
  cell: ScoreCell
4476
4484
  }),
4477
4485
  h.display({
4478
4486
  id: "delta",
4479
4487
  header: "\uBCC0\uD654",
4480
- size: 80,
4481
- meta: { align: "right" },
4488
+ size: 64,
4489
+ meta: { autoSize: true, align: "left" },
4482
4490
  cell: DeltaCell
4483
4491
  })
4484
4492
  ];
@@ -4508,6 +4516,7 @@ function ScoreTrendSection({
4508
4516
  data: rows,
4509
4517
  getRowStyle: (d) => d.isCurrent ? { background: "var(--accent-a2)" } : {},
4510
4518
  showPagination: false,
4519
+ slim: true,
4511
4520
  variant: "sprite"
4512
4521
  }
4513
4522
  ) })