Improve style of ModelViewSelect and fix text wrapping
This commit is contained in:
parent
0961812b56
commit
50b7b47527
|
@ -49,11 +49,12 @@
|
||||||
}))
|
}))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="dropdownbutton" bind:this={anchorRight}>
|
<div
|
||||||
<Button secondary wide on:click={dropdownRight.show}>
|
class="dropdownbutton"
|
||||||
<span>{value.label ? value.label : 'Model / View'}</span>
|
bind:this={anchorRight}
|
||||||
<Icon name="arrowdown" />
|
on:click={dropdownRight.show}>
|
||||||
</Button>
|
<span>{value.label ? value.label : 'Model / View'}</span>
|
||||||
|
<Icon name="arrowdown" />
|
||||||
</div>
|
</div>
|
||||||
<DropdownMenu bind:this={dropdownRight} anchor={anchorRight}>
|
<DropdownMenu bind:this={dropdownRight} anchor={anchorRight}>
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
|
@ -100,8 +101,33 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.dropdownbutton {
|
.dropdownbutton {
|
||||||
width: 100%;
|
background-color: var(--grey-2);
|
||||||
|
border: var(--border-transparent);
|
||||||
|
padding: var(--spacing-m);
|
||||||
|
border-radius: var(--border-radius-m);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
overflow: hidden;
|
||||||
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
.dropdownbutton:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: var(--grey-3);
|
||||||
|
}
|
||||||
|
.dropdownbutton span {
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
text-align: left;
|
||||||
|
font-size: var(--font-size-xs);
|
||||||
|
}
|
||||||
|
.dropdownbutton :global(svg) {
|
||||||
|
margin: -4px 0;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
padding: var(--spacing-m) 0;
|
padding: var(--spacing-m) 0;
|
||||||
z-index: 99999999;
|
z-index: 99999999;
|
||||||
|
|
Loading…
Reference in New Issue