refactor(farms): move grow-light budget row inline styles to CSS module tokens

Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
This commit is contained in:
OmO Orchestratorandsisyphus-dev-ai committed 2026-11-20 19:56:07 -05:00
1 parent a07f35c945
commit 18a2fb6cbb
2 files changed
+21 -8

No files matched your search

+18
View File
@@ -4,3 +4,21 @@
gap: 1rem;
padding-bottom: 1.5rem;
}
.energyBudgetRow {
display: flex;
gap: var(--space-2);
align-items: center;
margin: var(--space-1) 2px 0;
}
.budgetLabel {
font-size: 0.8125rem;
color: var(--color-ink-soft);
}
.budgetValue {
flex: 1;
padding: var(--space-2);
font-weight: 600;
}
+3 -8
View File
@@ -99,14 +99,9 @@ export function FarmsScreen() {
<section className={styles.screen} aria-label="Farms">
<ForecastPanel computation={computation} energyBudgetKwh={energyBudgetKwh} />
<div
style={{ display: "flex", gap: 8, alignItems: "center", margin: "4px 2px 0" }}
>
<span style={{ fontSize: 13, color: "#555" }}>Grow-light power budget (kWh, from Fair Share)</span>
<span
data-testid="farms-energy-budget"
style={{ flex: 1, padding: 8, fontWeight: 600 }}
>
<div className={styles.energyBudgetRow}>
<span className={styles.budgetLabel}>Grow-light power budget (kWh, from Fair Share)</span>
<span data-testid="farms-energy-budget" className={styles.budgetValue}>
{energyBudgetKwh === undefined
? "No Fair Share power allocation yet (unlimited)"
: `${energyBudgetKwh} kWh`}