Add related changes to third column
With appropriate wrapping on screen resize Change-Id: I9ddb9d8cb7f3d7ef6ec8784df97a79ed95416480
This commit is contained in:
@@ -108,6 +108,9 @@ limitations under the License.
|
|||||||
gr-reviewer-list {
|
gr-reviewer-list {
|
||||||
min-width: 25em;
|
min-width: 25em;
|
||||||
}
|
}
|
||||||
|
.changeMetadata {
|
||||||
|
margin-right: 1em;
|
||||||
|
}
|
||||||
.changeMetadata-label {
|
.changeMetadata-label {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -131,7 +134,7 @@ limitations under the License.
|
|||||||
}
|
}
|
||||||
.commitMessage {
|
.commitMessage {
|
||||||
font-family: var(--monospace-font-family);
|
font-family: var(--monospace-font-family);
|
||||||
margin-left: 1em;
|
margin-right: 2em;
|
||||||
max-width: 72ch;
|
max-width: 72ch;
|
||||||
}
|
}
|
||||||
.commitMessage h4 {
|
.commitMessage h4 {
|
||||||
@@ -140,18 +143,26 @@ limitations under the License.
|
|||||||
margin-bottom: .25em;
|
margin-bottom: .25em;
|
||||||
}
|
}
|
||||||
gr-file-list {
|
gr-file-list {
|
||||||
padding: 0 var(--default-horizontal-margin) 10px;
|
margin-bottom: 1em;
|
||||||
}
|
|
||||||
gr-related-changes-list {
|
|
||||||
border-top: 1px solid #ddd;
|
|
||||||
padding: 0 var(--default-horizontal-margin);
|
padding: 0 var(--default-horizontal-margin);
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 55em) {
|
@media screen and (max-width: 80em) {
|
||||||
|
.changeInfo {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 60em) {
|
||||||
.changeInfo {
|
.changeInfo {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
}
|
||||||
|
.changeMetadata,
|
||||||
|
.commitMessage,
|
||||||
|
gr-related-changes-list {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-top: .25em;
|
||||||
}
|
}
|
||||||
.commitMessage {
|
.commitMessage {
|
||||||
margin-left: 0;
|
|
||||||
max-width: none;
|
max-width: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -276,16 +287,16 @@ limitations under the License.
|
|||||||
content="[[_commitInfo.message]]"
|
content="[[_commitInfo.message]]"
|
||||||
config="[[_projectConfig.commentlinks]]"></gr-linked-text>
|
config="[[_projectConfig.commentlinks]]"></gr-linked-text>
|
||||||
</div>
|
</div>
|
||||||
|
<gr-related-changes-list id="relatedChanges"
|
||||||
|
change="[[_change]]"
|
||||||
|
server-config="[[serverConfig]]"
|
||||||
|
patch-num="[[_patchNum]]"></gr-related-changes-list>
|
||||||
</section>
|
</section>
|
||||||
<gr-file-list id="fileList"
|
<gr-file-list id="fileList"
|
||||||
change-num="[[_changeNum]]"
|
change-num="[[_changeNum]]"
|
||||||
patch-num="[[_patchNum]]"
|
patch-num="[[_patchNum]]"
|
||||||
comments="[[_comments]]"
|
comments="[[_comments]]"
|
||||||
selected-index="{{viewState.selectedFileIndex}}"></gr-file-list>
|
selected-index="{{viewState.selectedFileIndex}}"></gr-file-list>
|
||||||
<gr-related-changes-list id="relatedChanges"
|
|
||||||
change="[[_change]]"
|
|
||||||
server-config="[[serverConfig]]"
|
|
||||||
patch-num="[[_patchNum]]"></gr-related-changes-list>
|
|
||||||
<gr-messages-list id="messageList"
|
<gr-messages-list id="messageList"
|
||||||
change-num="[[_changeNum]]"
|
change-num="[[_changeNum]]"
|
||||||
messages="[[_change.messages]]"
|
messages="[[_change.messages]]"
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ limitations under the License.
|
|||||||
params="[[_computeSameTopicQueryParams(change.topic)]]"
|
params="[[_computeSameTopicQueryParams(change.topic)]]"
|
||||||
last-response="{{_sameTopic}}"></gr-ajax>
|
last-response="{{_sameTopic}}"></gr-ajax>
|
||||||
|
|
||||||
<h3>Related changes</h3>
|
|
||||||
<div hidden$="[[!_loading]]">Loading...</div>
|
<div hidden$="[[!_loading]]">Loading...</div>
|
||||||
<section class="relatedChanges" hidden$="[[!_relatedResponse.changes.length]]" hidden>
|
<section class="relatedChanges" hidden$="[[!_relatedResponse.changes.length]]" hidden>
|
||||||
<h4>Relation Chain</h4>
|
<h4>Relation Chain</h4>
|
||||||
|
|||||||
Reference in New Issue
Block a user