Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Extension: the Download video menu's highlight stays inside its edge (#81) (#86)

Ahmed Nefzaoui21c83b62b512
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 04390010..4f1aa810 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -155,6 +155,8 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Fixed
+- **The browser extension's Download video menu: an item's highlight ran past the menu's
+ edge** ([#81](https://github.com/anefzaoui/misterdownloadmanager/issues/81)).
- **A long file name ran out of the progress window** ([#62](https://github.com/anefzaoui/misterdownloadmanager/issues/62)):
on the **Options on completion** tab, a longer translation of "Save To:" (Turkish, German…)
ran into the path, and the path ran past the window's edge. The label now takes the room its
diff --git a/ROADMAP.md b/ROADMAP.md
index e332776c..6e914502 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -35,6 +35,8 @@ Everything below ships together, in one release.
desktops without a tray, such as MangoWC ([#59](https://github.com/anefzaoui/misterdownloadmanager/issues/59))
- ✅ Downloads that hand out one-time links no longer fail with 403
([#28](https://github.com/anefzaoui/misterdownloadmanager/issues/28))
+- ✅ The extension's Download video menu keeps its highlight inside its edge
+ ([#81](https://github.com/anefzaoui/misterdownloadmanager/issues/81))
- ✅ No crash when a window opens while MDM is minimized
([#22](https://github.com/anefzaoui/misterdownloadmanager/issues/22))
- ✅ Long file names stay inside the progress window: the Save to path is shortened in the
diff --git a/extension/video.js b/extension/video.js
index c4d3926a..1a1b8e77 100644
--- a/extension/video.js
+++ b/extension/video.js
@@ -107,8 +107,10 @@
.pill.ok { background: linear-gradient(#f2fff6, #d4f3df); border-color: #2f9a5b; color: #135c33; }
.pill.err { background: linear-gradient(#fff4f4, #f6d6d6); border-color: #c24848; color: #7d1f1f; }
button {
- all: unset; display: flex; align-items: center; gap: 8px; color: inherit; cursor: pointer;
- font: inherit;
+ /* all: unset resets box-sizing too, past the rule above: without it a menu item's 100 % width
+ plus its padding ran past the menu's edge (#81). */
+ all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px;
+ color: inherit; cursor: pointer; font: inherit;
}
.go { padding: 0 12px 0 8px; border-radius: 8px 0 0 8px; cursor: grab; }
.more { padding: 0 9px; border-left: 1px solid rgba(23, 50, 77, .18); border-radius: 0 8px 8px 0; }