💄 Site > Projects hub > Add ellipsis
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
opacity 0.6
|
opacity 0.6
|
||||||
|
|
||||||
.select-projects
|
.select-projects
|
||||||
line-height 40px
|
line-height 22px
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
|
||||||
.arrow-down
|
.arrow-down
|
||||||
@@ -31,15 +31,23 @@
|
|||||||
&.hover
|
&.hover
|
||||||
display none
|
display none
|
||||||
|
|
||||||
.current
|
|
||||||
padding-left 20px
|
|
||||||
|
|
||||||
.others
|
.others
|
||||||
display none
|
display none
|
||||||
top 100%
|
top 100%
|
||||||
background #393855
|
background #393855
|
||||||
|
|
||||||
.other-project
|
.project
|
||||||
|
padding-top 9px
|
||||||
|
padding-bottom 9px
|
||||||
|
text-overflow ellipsis
|
||||||
|
|
||||||
|
&.current
|
||||||
|
padding-left 20px
|
||||||
|
white-space nowrap
|
||||||
|
overflow hidden
|
||||||
|
padding-right 92px
|
||||||
|
|
||||||
|
&.other-project
|
||||||
display block
|
display block
|
||||||
padding-left 20px
|
padding-left 20px
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="projectsCount > 1" class="select-projects">
|
<div v-if="projectsCount > 1" class="select-projects">
|
||||||
<div class="current">
|
<div class="current project">
|
||||||
{{ currentProject.name }}
|
{{ currentProject.name }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<img class="icon arrow-down hover" src="../../../static/svg/arrow-down-hover.svg" alt="">
|
<img class="icon arrow-down hover" src="../../../static/svg/arrow-down-hover.svg" alt="">
|
||||||
|
|
||||||
<div class="others">
|
<div class="others">
|
||||||
<a class="other-project" v-if="currentProject.slug !== project.slug" href="#" v-for="project in projects" :key="project.slug" @click.prevent="onProjectClick(project.slug)">
|
<a class="other-project project" v-if="currentProject.slug !== project.slug" href="#" v-for="project in projects" :key="project.slug" @click.prevent="onProjectClick(project.slug)">
|
||||||
{{ project.name }}
|
{{ project.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user