fix: align stat chip layout with reference JS inline styles
Match poly-stat-item gap/font-size, chip padding via inline style, and 27px chip height from line-height 21px. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -58,7 +58,7 @@ export function DashboardHeader({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="header-stats-bar side-polygon-stats">
|
<div className="header-stats-bar side-polygon-stats">
|
||||||
<div className="poly-stat-item">
|
<div className="poly-stat-item" style={{ fontSize: '18px', gap: '8px' }}>
|
||||||
<span className="poly-stat-quarter header-stat-text">{quarterLabel}</span>
|
<span className="poly-stat-quarter header-stat-text">{quarterLabel}</span>
|
||||||
<span className="poly-stat-bullet header-stat-text">·</span>
|
<span className="poly-stat-bullet header-stat-text">·</span>
|
||||||
{statItems.map((item, index) => (
|
{statItems.map((item, index) => (
|
||||||
@@ -128,7 +128,8 @@ function StatClick({ label, value, statusKey, activeStatus, accent, onClick }: S
|
|||||||
handleActivate();
|
handleActivate();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className={`poly-click-stat header-stat-text whitespace-nowrap ${isActive ? 'active' : ''}`}
|
className={`poly-click-stat header-stat-text ${isActive ? 'active' : ''}`}
|
||||||
|
style={{ cursor: 'pointer', padding: '2px 6px', borderRadius: '4px' }}
|
||||||
>
|
>
|
||||||
{label}{' '}
|
{label}{' '}
|
||||||
<span className={`poly-stat-val ${accent}`}>{value}</span>
|
<span className={`poly-stat-val ${accent}`}>{value}</span>
|
||||||
|
|||||||
@@ -166,18 +166,16 @@ body,
|
|||||||
background-color: rgba(238, 234, 227, 0.4);
|
background-color: rgba(238, 234, 227, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* F12 — poly-click-stat (기본 / hover / active) */
|
/* F12 — poly-click-stat (기본 / hover / active) — padding·radius는 JS 인라인과 동일 */
|
||||||
.poly-click-stat {
|
.poly-click-stat {
|
||||||
display: inline-flex;
|
display: inline;
|
||||||
align-items: center;
|
box-sizing: border-box;
|
||||||
line-height: 1;
|
line-height: 21px;
|
||||||
cursor: pointer;
|
vertical-align: middle;
|
||||||
color: #fffc;
|
color: #fffc;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding: 2px 6px;
|
|
||||||
border-radius: 4px;
|
|
||||||
border: 1px solid #1d6947;
|
border: 1px solid #1d6947;
|
||||||
background: linear-gradient(180deg, #337c5f 0%, #1c4638 100%);
|
background: linear-gradient(180deg, #337c5f 0%, #1c4638 100%);
|
||||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
|
||||||
|
|||||||
Reference in New Issue
Block a user