Bug 1455589 - Drop margin at right end of DevTools toolbox toolbar on non-Mac platforms; r?jryans draft
authorBrian Birtles <birtles@gmail.com>
Tue, 24 Apr 2018 14:41:44 +0900
changeset 788240 705ed2bec81d846280eb133094b197a74a7d9bfb
parent 788112 99c19a66c3a2fbf8108d4b8a161cded31e948409
push id107922
push userbmo:bbirtles@mozilla.com
push dateThu, 26 Apr 2018 01:05:36 +0000
reviewersjryans
bugs1455589
milestone61.0a1
Bug 1455589 - Drop margin at right end of DevTools toolbox toolbar on non-Mac platforms; r?jryans This margin only appears to be needed on Mac hence this patch makes the setting apply only on OSX. It also switches to using logical properties so that the margin appears in the correct place in RTL builds. MozReview-Commit-ID: Chp1HJcretg
devtools/client/themes/toolbox.css
--- a/devtools/client/themes/toolbox.css
+++ b/devtools/client/themes/toolbox.css
@@ -159,18 +159,20 @@
   background-image: var(--command-chevron-image);
   background-position: center;
 }
 
 .tools-chevron-menu:-moz-locale-dir(rtl) {
   transform: rotate(180deg);
 }
 
-#toolbox-controls {
-  margin-right: 3px;
+/* On OSX the cursor turns into a window-resizing cursor at the edges of the
+ * window, so bring the end of the toolbox in. */
+:root[platform="mac"] #toolbox-controls {
+  margin-inline-end: 3px;
 }
 
 #toolbox-buttons-end > .devtools-separator {
   margin-inline-start: 5px;
   margin-inline-end: 5px;
 }
 
 #toolbox-close::before {