Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2021-03-15 12:32:13 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2021-03-15 12:32:13 +0300
commite4f2df515bbd6dbe55f6b643e588c91c4f15e501 (patch)
tree0f8f11937bda1e499756e35360655f77f4001775
parent88733e2898f954787cf38d5b4d5bd925f5f0b01d (diff)
parent220d9d2fc5f0258139049c101bdd6a4b2537b003 (diff)
Merge branch 'scroll-on-hover' of https://github.com/flo-mic/passwords-webextension into flo-mic-scroll-on-hover
# Conflicts: # src/vue/Components/List/Item/Password.vue
-rw-r--r--src/vue/Components/List/Item/Password.vue31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/vue/Components/List/Item/Password.vue b/src/vue/Components/List/Item/Password.vue
index cffad61..393b9e3 100644
--- a/src/vue/Components/List/Item/Password.vue
+++ b/src/vue/Components/List/Item/Password.vue
@@ -3,7 +3,7 @@
<div class="item-main" :class="{'has-menu':showMenu}">
<div class="label" @click="sendPassword()" :title="title">
<favicon :password="password.getId()" :size="22" v-if="favicon"/>
- {{ label }}
+ <span ref="title" :class="titleClass">{{ label }}</span>
</div>
<div class="options">
<icon icon="user" hover-icon="clipboard" @click="copy('username')" draggable="true" @dragstart="drag($event, 'username')"/>
@@ -47,11 +47,20 @@
data() {
return {
- active : true,
- showMenu: false
+ active: true,
+ showMenu: false,
+ titleClass: ''
};
},
+ mounted(){
+ if(this.$refs.title.offsetWidth - 100 < this.$refs.title.scrollWidth) {
+ this.titleClass = "scroll-on-hover"
+ } else {
+ this.titleClass = "";
+ }
+ },
+
computed: {
securityClass() {
let types = ['secure', 'warn', 'bad'];
@@ -160,6 +169,21 @@
text-overflow : ellipsis;
transition : min-width .25s ease-in-out;
+ span {
+ display: block;
+ width : inherit;
+ }
+
+ .scroll-on-hover {
+ position: absolute;
+ transform: translateX(0);
+ transition: 2s;
+ }
+
+ .scroll-on-hover:hover {
+ transform: translateX(calc(100vw - 9.5rem - 100%));
+ }
+
.favicon {
vertical-align : middle;
border-radius : 3px;
@@ -200,6 +224,7 @@
display : inline-block;
line-height : 3rem;
z-index : 0;
+ background-color : inherit;
&.secure {
color : var(--success-bg-color)