Title: [250749] trunk/Websites/perf.webkit.org
Revision
250749
Author
[email protected]
Date
2019-10-04 15:07:15 -0700 (Fri, 04 Oct 2019)

Log Message

[perf dashboard] Make test fressness head and indicator perfect centered
https://bugs.webkit.org/show_bug.cgi?id=202602

Reviewed by Ryosuke Niwa.

* public/v3/components/freshness-indicator.js: make indicator margin auto, it will then horizontally centered in the container
(FreshnessIndicator.cssTemplate):
(FreshnessIndicator):
* public/v3/pages/test-freshness-page.js: make the table head transform based on the center left
(TestFreshnessPage.cssTemplate):

Modified Paths

Diff

Modified: trunk/Websites/perf.webkit.org/ChangeLog (250748 => 250749)


--- trunk/Websites/perf.webkit.org/ChangeLog	2019-10-04 22:00:27 UTC (rev 250748)
+++ trunk/Websites/perf.webkit.org/ChangeLog	2019-10-04 22:07:15 UTC (rev 250749)
@@ -1,3 +1,16 @@
+2019-10-04  Zhifei Fang  <[email protected]>
+
+        [perf dashboard] Make test fressness head and indicator perfect centered
+        https://bugs.webkit.org/show_bug.cgi?id=202602
+
+        Reviewed by Ryosuke Niwa.
+
+        * public/v3/components/freshness-indicator.js: make indicator margin auto, it will then horizontally centered in the container
+        (FreshnessIndicator.cssTemplate):
+        (FreshnessIndicator):
+        * public/v3/pages/test-freshness-page.js: make the table head transform based on the center left
+        (TestFreshnessPage.cssTemplate):
+
 2019-10-02  Dewei Zhu  <[email protected]>
 
         Fix a bug that warning icon causes infinite rendering when it has warning message.

Modified: trunk/Websites/perf.webkit.org/public/v3/components/freshness-indicator.js (250748 => 250749)


--- trunk/Websites/perf.webkit.org/public/v3/components/freshness-indicator.js	2019-10-04 22:00:27 UTC (rev 250748)
+++ trunk/Websites/perf.webkit.org/public/v3/components/freshness-indicator.js	2019-10-04 22:07:15 UTC (rev 250749)
@@ -61,7 +61,7 @@
     {
         return `
             div {
-                margin-left: 0;
+                margin: auto;
                 height: 1.8rem;
                 width: 1.8rem;
             }
@@ -86,4 +86,4 @@
 }
 
 
-ComponentBase.defineElement('freshness-indicator', FreshnessIndicator);
\ No newline at end of file
+ComponentBase.defineElement('freshness-indicator', FreshnessIndicator);

Modified: trunk/Websites/perf.webkit.org/public/v3/pages/test-freshness-page.js (250748 => 250749)


--- trunk/Websites/perf.webkit.org/public/v3/pages/test-freshness-page.js	2019-10-04 22:00:27 UTC (rev 250748)
+++ trunk/Websites/perf.webkit.org/public/v3/pages/test-freshness-page.js	2019-10-04 22:07:15 UTC (rev 250749)
@@ -280,11 +280,14 @@
             #test-health th.diagonal-head {
                 white-space: nowrap;
                 height: 16rem;
+                width: 2.2rem;
                 border-bottom: 0rem;
+                padding: 0;
             }
             #test-health th.diagonal-head > div {
-                transform: translate(1rem, 7rem) rotate(315deg);
-                width: 2rem;
+                transform: translate(1.1rem, 7.5rem) rotate(315deg);
+                transform-origin: center left;
+                width: 2.2rem;
                 border: 0rem;
             }
             #test-health tbody {
@@ -312,7 +315,7 @@
                 background-color: #F9F9F9;
                 height: 1.6rem;
                 width: 1.6rem;
-                margin: 0.1rem;
+                margin: auto;
                 padding: 0;
                 position: relative;
                 overflow: hidden;
@@ -374,4 +377,4 @@
     }
 
     routeName() { return 'test-freshness'; }
-}
\ No newline at end of file
+}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to