
This changes the way the change list view is layed out (flexbox instead of tables) for a couple reasons: + Table elements (td, tr, etc.) cannot be arbitrarily appended to just any DOM node, which caused breakage when I originally attempted to use a <content> tag to bring in the header or group title content into gr-change-list-item. + The flexibility of flexbox allows us to style the change list much easier on smaller screens, so it was probably going to happen anyway. + Full-width (colspan="<total number of columns in the table>") rows for the headers is much more difficult when using elements outside of the gr-change-list-item brought in via <content> as described above. + gr-change-list-item was doing too much anyway. Feature: Issue 3700 Change-Id: I6536bf7d18adfa460507f8050a15d83e84af82a7
64 lines
1.4 KiB
HTML
64 lines
1.4 KiB
HTML
<!--
|
|
Copyright (C) 2015 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<dom-module id="gr-change-list-styles">
|
|
<template>
|
|
<style>
|
|
.keyboard {
|
|
width: 2em;
|
|
}
|
|
.subject {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
word-break: break-word;
|
|
}
|
|
.status {
|
|
width: 9em;
|
|
}
|
|
.owner {
|
|
width: 15em;
|
|
}
|
|
.project,
|
|
.branch {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.project {
|
|
width: 10em;
|
|
}
|
|
.branch {
|
|
width: 7em;
|
|
}
|
|
.updated {
|
|
width: 6em;
|
|
text-align: right;
|
|
}
|
|
.size {
|
|
width: 9em;
|
|
text-align: right;
|
|
}
|
|
.codeReview {
|
|
width: 2.6em;
|
|
text-align: center;
|
|
}
|
|
.verified {
|
|
width: 2em;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</template>
|
|
</dom-module>
|