⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 194232 in webkit


Ignore:
Timestamp:
Dec 17, 2015, 2:13:45 PM (11 years ago)
Author:
rniwa@webkit.org
Message:

Dashboard charts should have uniform widths on v3 UI
​https://bugs.webkit.org/show_bug.cgi?id=152395

Reviewed by Chris Dumez.

Fix the bug by applying table-layout: fixed on the dashboard table.

  • public/v3/pages/dashboard-page.js:

(DashboardPage.prototype.render): Added header-column as a class name to explicitly set the header column with.
(DashboardPage.cssTemplate): Adjusted CSS accordingly.

Location:
trunk/Websites/perf.webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/perf.webkit.org/ChangeLog

    r194220 r194232  
     12015-12-17  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Dashboard charts should have uniform widths on v3 UI
     4        https://bugs.webkit.org/show_bug.cgi?id=152395
     5
     6        Reviewed by Chris Dumez.
     7
     8        Fix the bug by applying table-layout: fixed on the dashboard table.
     9
     10        * public/v3/pages/dashboard-page.js:
     11        (DashboardPage.prototype.render): Added header-column as a class name to explicitly set the header column with.
     12        (DashboardPage.cssTemplate): Adjusted CSS accordingly.
     13
    1142015-12-17  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/Websites/perf.webkit.org/public/v3/pages/dashboard-page.js

    r194172 r194232  
    9393            for (var group of this._tableGroups) {
    9494                tree.push(element('thead', element('tr',
    95                     group[0].map(function (cell) { return element('td', cell.content || cell); }))));
     95                    group[0].map(function (cell, cellIndex) {
     96                        if (!cellIndex)
     97                            return element('th', {class: 'heading-column'});
     98                        return element('td', cell.content || cell);
     99                    }))));
    96100
    97101                tree.push(element('tbody', group.slice(1).map(function (row) {
    … …  
    165169    {
    166170        return `
     171            .dashboard-table {
     172                table-layout: fixed;
     173            }
    167174            .dashboard-table td,
    168175            .dashboard-table th {
    … …  
    183190                width: 2rem;
    184191                position: relative;
     192            }
     193            .dashboard-table .heading-column {
     194                width: 2rem;
     195                height: 1rem;
    185196            }
    186197            .dashboard-table th .vertical-label {
Note: See TracChangeset for help on using the changeset viewer.