Merge "Fix display of gr-commit-info in inline header"
This commit is contained in:
@@ -219,6 +219,9 @@ limitations under the License.
|
|||||||
.text {
|
.text {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
gr-commit-info {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
@media screen and (min-width: 80em) {
|
@media screen and (min-width: 80em) {
|
||||||
.commitMessage {
|
.commitMessage {
|
||||||
max-width: var(--commit-message-max-width, 100ch);
|
max-width: var(--commit-message-max-width, 100ch);
|
||||||
|
@@ -21,11 +21,12 @@ limitations under the License.
|
|||||||
<dom-module id="gr-commit-info">
|
<dom-module id="gr-commit-info">
|
||||||
<template>
|
<template>
|
||||||
<style include="shared-styles">
|
<style include="shared-styles">
|
||||||
:host {
|
.container {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<div class="container">
|
||||||
<template is="dom-if" if="[[_showWebLink]]">
|
<template is="dom-if" if="[[_showWebLink]]">
|
||||||
<a target="_blank" rel="noopener"
|
<a target="_blank" rel="noopener"
|
||||||
href$="[[_webLink]]">[[_computeShortHash(commitInfo)]]</a>
|
href$="[[_webLink]]">[[_computeShortHash(commitInfo)]]</a>
|
||||||
@@ -37,6 +38,7 @@ limitations under the License.
|
|||||||
hide-input
|
hide-input
|
||||||
text="[[commitInfo.commit]]">
|
text="[[commitInfo.commit]]">
|
||||||
</gr-copy-clipboard>
|
</gr-copy-clipboard>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script src="gr-commit-info.js"></script>
|
<script src="gr-commit-info.js"></script>
|
||||||
</dom-module>
|
</dom-module>
|
||||||
|
Reference in New Issue
Block a user