Skip to content

Commit 3689ff7

Browse files
committed
Fix overflow scrolling for listView
1 parent f0cec55 commit 3689ff7

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

‎ui/scripts/sharedFunctions.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ var md5Hashed = false;
4545
var md5HashedLogin = false;
4646

4747
//page size for API call (e.g."listXXXXXXX&pagesize=N" )
48-
var pageSize = 20;
48+
var pageSize = 30;
4949

5050
var rootAccountId = 1;
5151

‎ui/stylesheets/cloudstack.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ body {
221221
// List view widget
222222
.list-view {
223223
@include csui-list;
224+
225+
max-height: 85%;
224226
}
225227

226228
// Panel toolbars

‎ui/stylesheets/csui/_list.scss‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
// under the License.
1717
@mixin csui-list {
1818
margin: 20px;
19+
overflow: auto;
1920

2021
table {
2122
width: 100%;
@@ -36,17 +37,27 @@
3637

3738
tr td {
3839
padding: 5px;
39-
border-bottom: 1px solid #ccc;
40+
border: 1px solid #ccc;
4041
font-size: 11px;
41-
white-space: nowrap;
42+
max-width: 100px;
4243

4344
span {
4445
float: left;
4546
}
4647
}
4748

48-
th.quick-view, td.quick-view {
49-
width: 40px;
49+
th, td {
50+
&.quick-view {
51+
width: 40px;
52+
}
53+
54+
&.actions {
55+
width: 80px;
56+
}
57+
58+
&.reorder {
59+
width: 150px;
60+
}
5061
}
5162

5263
td.quick-view {

0 commit comments

Comments
 (0)