Bug 1463355: Remove right margin/padding from split console close button in case of the platform is not 'mac'. r?nchevobbe draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Wed, 23 May 2018 16:43:54 +0900
changeset 798627 f68e6565ee4f996f1cfe16bac0978bf38786a739
parent 798564 9055d9d89a4bca5cf48dda789299559aefca4e54
push id110808
push userbmo:dakatsuka@mozilla.com
push dateWed, 23 May 2018 07:45:37 +0000
reviewersnchevobbe
bugs1463355
milestone62.0a1
Bug 1463355: Remove right margin/padding from split console close button in case of the platform is not 'mac'. r?nchevobbe MozReview-Commit-ID: DB8yM4Ce5TS
devtools/client/themes/webconsole.css
--- a/devtools/client/themes/webconsole.css
+++ b/devtools/client/themes/webconsole.css
@@ -554,16 +554,27 @@ a.learn-more-link.webconsole-learn-more-
   grid-column: 1 / -1;
 }
 
 .split-console-close-button-wrapper {
   min-height: var(--primary-toolbar-height);
   /* We will need to display the close button in the right-top always. */
   grid-column: -1 / -2;
   grid-row: 1 / 2;
+  padding-inline-end: 0;
+}
+
+/* On OSX the cursor turns into a window-resizing cursor at the edges of the
+ * window, so bring the end of the close button in. */
+:root[platform="mac"] .split-console-close-button-wrapper {
+  padding-inline-end: 3px;
+}
+
+#split-console-close-button {
+  margin-inline-end: 0;
 }
 
 .webconsole-filterbar-primary .devtools-plaininput {
   flex: 1 1 100%;
   align-self: stretch;
   margin-left: 1px;
   padding-inline-start: 4px;
   border: 1px solid transparent;