Commit 1069f485 by Torkel Ödegaard

ux(query_editors): handle text overflow in collapsed mode

parent 4c4835e8
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</label> </label>
</div> </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"> <div class="gf-form">
<label class="gf-form-label pointer gf-form-label--grow" ng-click="ctrl.toggleCollapse()"> <label class="gf-form-label pointer gf-form-label--grow" ng-click="ctrl.toggleCollapse()">
{{ctrl.collapsedText}} {{ctrl.collapsedText}}
......
...@@ -220,6 +220,18 @@ $gf-form-margin: 0.25rem; ...@@ -220,6 +220,18 @@ $gf-form-margin: 0.25rem;
.gf-form-query-content { .gf-form-query-content {
flex-grow: 1; 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 { .gf-form-help-icon {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment