Skip to content

Commit 32dee6d

Browse files
author
Emre Üstere
committed
css changes
1 parent 6bd6d2e commit 32dee6d

File tree

2 files changed

+32
-24
lines changed

2 files changed

+32
-24
lines changed

frontend/express/public/javascripts/countly/vue/components/helpers.js

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,44 +1314,41 @@
13141314
},
13151315
scrollPanel: {
13161316
initialScrollX: false,
1317-
maxHeight: '150px',
1318-
minHeight: '36px',
1317+
// heigh: '50px',
1318+
// maxHeight: '150px',
13191319
},
13201320
rail: {
13211321
gutterOfSide: "4px",
13221322
gutterOfEnds: "16px",
1323+
keepShow: false,
13231324
},
13241325
bar: {
13251326
background: "#A7AEB8",
13261327
size: "6px",
1328+
keepShow: false,
13271329
}
13281330
},
13291331
};
13301332
},
1331-
computed: {
1332-
listArrow: function() {
1333-
if (this.isOpen) {
1334-
return "cly-io-chevron-up";
1335-
}
1336-
else {
1337-
return "cly-io-chevron-down";
1338-
}
1339-
}
1340-
},
13411333
methods: {
13421334
toggleList: function() {
13431335
this.isOpen = !this.isOpen;
13441336
},
13451337
},
13461338
template: '<div class="cly-list-drawer">\
1347-
<div class="cly-list-drawer__text-clickable bu-pt-4 bu-pb-3 bu-has-text-weight-medium" @click="toggleList">{{dropdownText}}<i class="cly-io-16 cly-io" :class="listArrow"></i></div>\
1348-
<div v-if="isOpen" class="cly-list-drawer__list">\
1349-
<vue-scroll :ops="options">\
1339+
<div class="cly-list-drawer__text-clickable bu-pt-4 bu-pb-3 bu-has-text-weight-medium" @click="toggleList">\
1340+
{{ dropdownText }}\
1341+
<i class="cly-io-16 cly-io cly-io-chevron-down" :class="{ \'rotate-icon\': isOpen }"></i>\
1342+
</div>\
1343+
<div v-if="isOpen" class="cly-list-drawer__list">\
1344+
<vue-scroll :ops="options">\
1345+
<div>\
13501346
<ul>\
13511347
<li v-for="ev in list">{{ev}}</li>\
13521348
</ul>\
1353-
</vue-scroll>\
1354-
</div>\
1349+
</div>\
1350+
</vue-scroll>\
1351+
</div>\
13551352
</div>'
13561353
}));
13571354

frontend/express/public/stylesheets/vue/clyvue.scss

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4502,24 +4502,35 @@
45024502
}
45034503

45044504
.cly-list-drawer {
4505-
&__text-clickable {
4506-
color:#0166D6
4505+
.cly-list-drawer__text-clickable {
4506+
color: #0166D6;
4507+
cursor: pointer;
4508+
}
4509+
.cly-list-drawer__text-clickable i {
4510+
transition: transform 0.3s, -webkit-transform .3s;
4511+
}
4512+
4513+
.rotate-icon {
4514+
transform: rotate(180deg);
4515+
}
4516+
4517+
.cly-io {
4518+
display: inline-block;
45074519
}
45084520

45094521
&__list {
4510-
height: auto;
4511-
min-height: 36px;
4512-
max-height: 150px;
4522+
height: 100px;
45134523
background-color: #F6F6F6;
45144524
overflow: auto;
45154525
ul {
4516-
list-style: none; padding: 0;
4526+
list-style: none;
4527+
padding: 0px;
45174528
li {
45184529
padding-left: 16px;
45194530
padding-bottom: 0.5rem;
45204531
}
45214532
li:last-child {
4522-
padding-bottom: 0;
4533+
padding-bottom: 0px;
45234534
}
45244535
}
45254536
}

0 commit comments

Comments
 (0)