chore: Show scrollbar for sidebar only on hover (#3688)

This commit is contained in:
Nithin David Thomas 2022-01-05 09:37:43 +05:30 committed by GitHub
parent e775d22b98
commit fade94658a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 20 deletions

View file

@ -191,16 +191,6 @@ export default {
background: var(--white);
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 lang="scss">

View file

@ -168,3 +168,18 @@ export default {
},
};
</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>

View file

@ -10,17 +10,24 @@
/>
<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
:href="contactProfileLink"
class="fs-default"
target="_blank"
rel="noopener nofollow noreferrer"
>
{{ contact.name }}
<fluent-icon size="16" icon="open" class="open-link--icon" />
<woot-button
size="tiny"
icon="open"
variant="clear"
color-scheme="secondary"
/>
</a>
</h3>
</div>
<p v-if="additionalAttributes.description" class="contact--bio">
{{ additionalAttributes.description }}
</p>
@ -294,19 +301,20 @@ export default {
text-align: left;
}
.contact--name-wrap {
display: flex;
align-items: center;
margin-bottom: var(--space-small);
}
.contact--name {
text-transform: capitalize;
white-space: normal;
margin: 0 var(--space-smaller) 0 0;
a {
color: var(--color-body);
}
.open-link--icon {
color: var(--color-body);
font-size: var(--font-size-small);
margin-left: var(--space-smaller);
}
}
.contact--metadata {