Merge branch 'main' of github.com:hcengineering/anticrm into main

This commit is contained in:
Andrey Platov 2021-09-02 19:42:16 +02:00
commit 3b50e07756
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -17,7 +17,7 @@
<script lang="ts">
import type { Ref } from '@anticrm/core'
import { createEventDispatcher } from 'svelte'
import { EditBox, Button } from '@anticrm/ui'
import { EditBox, Button, ScrollBox } from '@anticrm/ui'
import { getClient } from '@anticrm/presentation'
import contact, { ChannelProvider, Channel } from '@anticrm/contact'
@ -56,6 +56,7 @@
</script>
<div class="popup">
<ScrollBox vertical stretch>
<div class="popup-block">
<span>Contact Links</span>
{#each providers as provider, i}
@ -67,16 +68,20 @@
<EditBox label={'Twitter'} placeholder={'@rosychen'} maxWidth={'12.5rem'} />
<EditBox label={'Facebook'} placeholder={'facebook/rosamundch'} maxWidth={'12.5rem'} />
</div> -->
<Button label="Apply" on:click={() => { dispatch('close', filterUndefined(newValues)) }}/>
</ScrollBox>
<div class="buttons">
<div class="btn"><Button label="Apply" width={'100%'} on:click={() => { dispatch('close', filterUndefined(newValues)) }}/></div>
</div>
</div>
<style lang="scss">
.popup {
display: flex;
flex-direction: column;
padding: 1.5rem 1.25rem;
padding: 1.5rem 1.25rem 1.25rem;
width: 17rem;
max-width: 17rem;
height: 22rem;
color: var(--theme-caption-color);
background-color: var(--theme-button-bg-hovered);
border: 1px solid var(--theme-button-border-enabled);
@ -96,7 +101,12 @@
}
}
}
.popup-block + .popup-block {
margin-top: 2rem;
.popup-block + .popup-block { margin-top: 2rem; }
.buttons {
display: flex;
align-items: center;
margin-top: 1rem;
.btn { flex-grow: 1; }
.btn + .btn { margin-left: .75rem; }
}
</style>