diff --git a/VERSION b/VERSION index 2c2a151..1b386a5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.17.5 +6.18.0 diff --git a/play-life-web/package.json b/play-life-web/package.json index f6423fd..cf827ee 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "6.17.5", + "version": "6.18.0", "type": "module", "scripts": { "dev": "vite", diff --git a/play-life-web/src/components/ShoppingItemDetail.jsx b/play-life-web/src/components/ShoppingItemDetail.jsx index f0f7fea..8d1dd9d 100644 --- a/play-life-web/src/components/ShoppingItemDetail.jsx +++ b/play-life-web/src/components/ShoppingItemDetail.jsx @@ -196,7 +196,8 @@ function ShoppingItemDetail({ itemId, onClose, onRefresh, onItemCompleted, onNav type="button" className="progression-control-btn progression-control-plus" onClick={() => { - const current = parseFloat(volumeValue) || 0 + const base = item.last_volume ?? item.volume_base ?? 1 + const current = volumeValue.trim() ? parseFloat(volumeValue) : base const step = item.volume_base || 1 setVolumeValue((current + step).toString()) }} diff --git a/play-life-web/src/components/TaskDetail.css b/play-life-web/src/components/TaskDetail.css index ce5ceda..7234619 100644 --- a/play-life-web/src/components/TaskDetail.css +++ b/play-life-web/src/components/TaskDetail.css @@ -218,6 +218,10 @@ flex: 1; } +.shopping-item-complete-row .progression-label { + margin-bottom: 0; +} + .shopping-item-complete-row + .task-action-left { margin-top: 0.75rem; } diff --git a/play-life-web/src/components/TaskDetail.jsx b/play-life-web/src/components/TaskDetail.jsx index da9ca7c..552e4e4 100644 --- a/play-life-web/src/components/TaskDetail.jsx +++ b/play-life-web/src/components/TaskDetail.jsx @@ -840,7 +840,8 @@ function TaskDetail({ taskId, onClose, onRefresh, onTaskCompleted, onNavigate }) type="button" className="progression-control-btn progression-control-plus" onClick={() => { - const current = parseFloat(progressionValue) || 0 + const base = task.progression_base ?? 1 + const current = progressionValue.trim() ? parseFloat(progressionValue) : base const step = task.progression_base || 1 setProgressionValue((current + step).toString()) }}