Skip to content

Commit

Permalink
chore: some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopvlk committed Jan 9, 2025
1 parent 09c5375 commit 9bae467
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion data/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ listview > header label {
box-shadow: var(--list-border), var(--list-shadow),
inset -23px 0 0 -20px rgb(from currentColor r g b / calc(alpha * 0.25));
}

row:only-child button.remove-row {
background-color: rgb(from currentColor r g b / calc(alpha * 0.15));
opacity: 0.5;
}
.dosage-list > row {
border-radius: calc(var(--list-border-radius) + 2px);
background: none;
Expand Down
5 changes: 4 additions & 1 deletion src/upgradeItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export default function upgradeItems(json, type) {
const info = item.info || item._info;
const dur = info.duration;
const icon = info.icon.replace('-symbolic', '');
info.dosage.forEach(d => delete d.updated);
info.dosage.forEach(d => {
d.lastTaken = null;
delete d.updated;
});

// change to int and to parse in ms instead of seconds
if (typeof dur.start === 'string') {
Expand Down
2 changes: 1 addition & 1 deletion src/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ export const DosageWindow = GObject.registerClass(
}

itemsToAdd.sort((a, b) => b.obj.taken[0] - a.obj.taken[0]);
historyLS.splice(0, 0, itemsToAdd.reverse());
historyLS.splice(0, 0, itemsToAdd);
return itemsAdded;
}

Expand Down

0 comments on commit 9bae467

Please sign in to comment.