Skip to content

Commit dee81b3

Browse files
Merge pull request #1078 from anotherchrisberry/ui-select-monkey-patch
monkey patch fix for ui-select rendering on short screens
2 parents 136a6e2 + b716a48 commit dee81b3

File tree

3 files changed

+280
-254
lines changed

3 files changed

+280
-254
lines changed

app/scripts/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ angular.module('spinnaker')
1212
//})
1313
.config(function(uiSelectConfig) {
1414
uiSelectConfig.theme = 'select2';
15+
uiSelectConfig.appendToBody = true;
1516
})
1617
.config(function($tooltipProvider) {
1718
$tooltipProvider.options({

app/styles/main.less

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,5 +944,20 @@ body, html {
944944
}
945945

946946
ul.select2-results {
947-
max-height: 300px;
947+
max-height: 225px;
948+
}
949+
950+
.select2-container.input-sm.direction-up {
951+
.select2-drop-active {
952+
border-top: 1px solid #5897fb;
953+
padding-top: 3px;
954+
margin-bottom: 3px;
955+
}
956+
.select2-choice {
957+
border-bottom-color: #5897fb;
958+
}
959+
}
960+
961+
body > .select2-container.open {
962+
z-index: 10003;
948963
}

0 commit comments

Comments
 (0)