ux(query_editors): handle text overflow in collapsed mode

This commit is contained in:
Torkel Ödegaard 2016-04-17 22:24:40 -04:00
parent 4c4835e869
commit 1069f485da
2 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,7 @@
</label>
</div>
<div class="gf-form-query-content" ng-if="ctrl.collapsed">
<div class="gf-form-query-content gf-form-query-content--collapsed" ng-if="ctrl.collapsed">
<div class="gf-form">
<label class="gf-form-label pointer gf-form-label--grow" ng-click="ctrl.toggleCollapse()">
{{ctrl.collapsedText}}

View File

@ -220,6 +220,18 @@ $gf-form-margin: 0.25rem;
.gf-form-query-content {
flex-grow: 1;
overflow: hidden;
&--collapsed {
overflow: hidden;
.gf-form-label {
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
}
}
}
.gf-form-help-icon {