feat: improve user assignments via quick add magic #3348
|
@ -18,6 +18,9 @@
|
|||
</BaseButton>
|
||||
</span>
|
||||
</template>
|
||||
<template #searchResult="{option: user}">
|
||||
<user :avatar-size="24" :show-username="true" :user="user" class="user-search-result"/>
|
||||
dpschen marked this conversation as resolved
Outdated
|
||||
</template>
|
||||
</Multiselect>
|
||||
</template>
|
||||
|
||||
|
@ -146,4 +149,8 @@ async function findUser(query: string) {
|
|||
height: 18px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.user-search-result {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user
Use a prop here and change user so that it doesn't add a margin.
Reason: If we want to remove the margin in general from the user component later (which we should and I think I have done that already in some branch) then it will be much easier if we don't have classes that have dependencies that we are not aware of.
Sum up:
My first gut-reaction was, "but the user component is used a lot! That's quite a bit of effort to change it everywhere!". Then I started looking into and as it turns out, there are only 3 places where the margin from the component is not overridden from the outer component. That made it easier and kind of proved your point :)