mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 03:21:20 +00:00
fixed some padding
This commit is contained in:
parent
099f280f01
commit
49d6f99b18
5 changed files with 16 additions and 17 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<div
|
||||
class="friend"
|
||||
:style="{background: status.status !== 0 ? status.bgColor : ''}"
|
||||
:class="{selected: uniqueIDSelected, notifyAnimation: (notifications && notifications > 0) }"
|
||||
:class="{selected: uniqueIDSelected, notifyAnimation: (notifications && notifications > 0), tree }"
|
||||
@click="openChat"
|
||||
@mouseover="hover = true"
|
||||
@mouseleave="hover = false"
|
||||
|
|
@ -47,7 +47,8 @@ import statuses from '@/utils/statuses';
|
|||
import {bus} from '@/main'
|
||||
|
||||
export default {
|
||||
props: ['username', 'tag', 'channelID', 'uniqueID', 'recipient'],
|
||||
// tree will add padding to the left.
|
||||
props: ['username', 'tag', 'channelID', 'uniqueID', 'recipient', 'tree'],
|
||||
data() {
|
||||
return {
|
||||
hover: false
|
||||
|
|
@ -120,15 +121,15 @@ export default {
|
|||
.friend {
|
||||
color: white;
|
||||
padding: 5px;
|
||||
padding-left: 10px;
|
||||
padding-left: 10px;
|
||||
display: flex;
|
||||
transition: 0.3s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tree {
|
||||
padding-left: 22px;
|
||||
}
|
||||
.notifyAnimation{
|
||||
|
||||
animation: notifyAnime;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
:key="key"
|
||||
:channel-i-d="friend.channelID"
|
||||
:recipient="friends[key].recipient"
|
||||
:tree="true"
|
||||
/>
|
||||
</div>
|
||||
</transition>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
:key="key"
|
||||
:channel-i-d="friend.channelID"
|
||||
:recipient="friends[key].recipient"
|
||||
:tree="true"
|
||||
/>
|
||||
</div>
|
||||
</transition>
|
||||
|
|
|
|||
|
|
@ -65,14 +65,11 @@ export default {
|
|||
|
||||
.pending-friends{
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
margin: 5px;
|
||||
user-select: none;
|
||||
padding-bottom: 3px;
|
||||
border-radius: 5px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.tab{
|
||||
border-radius: 5px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.tab:hover{
|
||||
|
|
|
|||
|
|
@ -65,18 +65,18 @@ export default {
|
|||
|
||||
<style scoped>
|
||||
.username{
|
||||
width: 100px;
|
||||
width: 80px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 16px;
|
||||
}
|
||||
.pending-friend {
|
||||
color: white;
|
||||
background-color: rgba(0, 0, 0, 0.137);
|
||||
margin: 5px;
|
||||
padding: 10px;
|
||||
padding: 5px;
|
||||
padding-left: 22px;
|
||||
display: flex;
|
||||
transition: 0.3s;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.pending-friend:hover {
|
||||
|
|
@ -84,12 +84,11 @@ export default {
|
|||
}
|
||||
|
||||
.profile-picture{
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
background-color: rgba(0, 0, 0, 0.425);
|
||||
border-radius: 50%;
|
||||
margin: auto;
|
||||
margin-left: 2px;
|
||||
margin-right: 5px;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
|
|
@ -120,7 +119,7 @@ export default {
|
|||
margin: 5px;
|
||||
display: flex;
|
||||
transition: 0.3s;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
|
|
|
|||
Loading…
Reference in a new issue