mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
chore: Show scrollbar for sidebar only on hover (#3688)
This commit is contained in:
committed by
GitHub
parent
e775d22b98
commit
fade94658a
@@ -191,16 +191,6 @@ export default {
|
|||||||
background: var(--white);
|
background: var(--white);
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.secondary-menu {
|
|
||||||
background: var(--white);
|
|
||||||
border-right: 1px solid var(--s-50);
|
|
||||||
height: 100vh;
|
|
||||||
width: 19rem;
|
|
||||||
flex-shrink: 0;
|
|
||||||
overflow: auto;
|
|
||||||
padding: var(--space-small);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@@ -168,3 +168,18 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.secondary-menu {
|
||||||
|
background: var(--white);
|
||||||
|
border-right: 1px solid var(--s-50);
|
||||||
|
height: 100vh;
|
||||||
|
width: 19rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: var(--space-small);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -10,17 +10,24 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="contact--details">
|
<div class="contact--details">
|
||||||
<h3 v-if="showAvatar" class="sub-block-title contact--name">
|
<div v-if="showAvatar" class="contact--name-wrap">
|
||||||
|
<h3 class="sub-block-title contact--name">
|
||||||
|
{{ contact.name }}
|
||||||
|
</h3>
|
||||||
<a
|
<a
|
||||||
:href="contactProfileLink"
|
:href="contactProfileLink"
|
||||||
class="fs-default"
|
class="fs-default"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener nofollow noreferrer"
|
rel="noopener nofollow noreferrer"
|
||||||
>
|
>
|
||||||
{{ contact.name }}
|
<woot-button
|
||||||
<fluent-icon size="16" icon="open" class="open-link--icon" />
|
size="tiny"
|
||||||
|
icon="open"
|
||||||
|
variant="clear"
|
||||||
|
color-scheme="secondary"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</div>
|
||||||
<p v-if="additionalAttributes.description" class="contact--bio">
|
<p v-if="additionalAttributes.description" class="contact--bio">
|
||||||
{{ additionalAttributes.description }}
|
{{ additionalAttributes.description }}
|
||||||
</p>
|
</p>
|
||||||
@@ -294,19 +301,20 @@ export default {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contact--name-wrap {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: var(--space-small);
|
||||||
|
}
|
||||||
|
|
||||||
.contact--name {
|
.contact--name {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
margin: 0 var(--space-smaller) 0 0;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--color-body);
|
color: var(--color-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
.open-link--icon {
|
|
||||||
color: var(--color-body);
|
|
||||||
font-size: var(--font-size-small);
|
|
||||||
margin-left: var(--space-smaller);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact--metadata {
|
.contact--metadata {
|
||||||
|
|||||||
Reference in New Issue
Block a user