made some changes for testing (UI)

This commit is contained in:
2025-12-16 17:07:39 -05:00
parent 946d7d6003
commit fca1626921
3 changed files with 10 additions and 1 deletions

View File

@@ -515,7 +515,7 @@ def reward_status(id):
status = RewardStatus(reward.id, reward.name, points_needed, reward.cost, pending is not None, reward.image_id) status = RewardStatus(reward.id, reward.name, points_needed, reward.cost, pending is not None, reward.image_id)
statuses.append(status.to_dict()) statuses.append(status.to_dict())
statuses.sort(key=lambda s: s['cost']) statuses.sort(key=lambda s: (not s['redeeming'], s['cost']))
return jsonify({'reward_status': statuses}), 200 return jsonify({'reward_status': statuses}), 200

View File

@@ -238,6 +238,11 @@ const isAnyPending = computed(() => rewards.value.some((r) => r.redeeming))
padding: 0.5rem 0; padding: 0.5rem 0;
} }
/* Fallback for browsers that don't support flex gap */
.reward-card + .reward-card {
margin-left: 0.75rem;
}
.reward-card { .reward-card {
position: relative; position: relative;
background: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.12);

View File

@@ -233,6 +233,10 @@ onBeforeUnmount(() => {
padding: 0.5rem 0; padding: 0.5rem 0;
} }
/* Fallback for browsers that don't support flex gap */
.task-card + .task-card {
margin-left: 0.75rem;
}
.task-card { .task-card {
background: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.15);
border-radius: 8px; border-radius: 8px;