Remove Show Activity button. Login button size. (#1706)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-05-11 08:37:13 +03:00 committed by GitHub
parent e1947d3d03
commit 5b7c4132b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 34 deletions

View File

@ -16,7 +16,7 @@
<script lang="ts">
import { createEventDispatcher, onMount } from 'svelte'
import { getCurrentAccount, Ref, Space } from '@anticrm/core'
import { CircleButton, EditBox, IconActivity, Label } from '@anticrm/ui'
import { EditBox } from '@anticrm/ui'
import { getClient, createQuery } from '@anticrm/presentation'
import setting from '@anticrm/setting'
import { IntegrationType } from '@anticrm/setting'
@ -65,17 +65,9 @@
on:change={nameChange}
/>
</div>
<div class="flex-between channels">
<div class="flex-row-center">
<ChannelsEditor attachedTo={object._id} attachedClass={object._class} {integrations} on:click />
</div>
<div class="flex-row-center">
<div class="over-underline flex-row-center" on:click>
<CircleButton icon={IconActivity} size={'small'} primary on:click />
<span class="ml-2 text-sm"><Label label={contact.string.ViewActivity} /></span>
</div>
</div>
<div class="separator" />
<div class="flex-row-center">
<ChannelsEditor attachedTo={object._id} attachedClass={object._class} {integrations} on:click />
</div>
</div>
</div>
@ -94,7 +86,9 @@
font-size: 1.25rem;
color: var(--theme-caption-color);
}
.channels {
margin-top: 0.75rem;
.separator {
margin: 1rem 0;
height: 1px;
background-color: var(--divider-color);
}
</style>

View File

@ -20,7 +20,7 @@
import { getResource } from '@anticrm/platform'
import { AttributeEditor, Avatar, createQuery, EditableAvatar, getClient } from '@anticrm/presentation'
import setting, { IntegrationType } from '@anticrm/setting'
import { CircleButton, EditBox, IconActivity, Label } from '@anticrm/ui'
import { EditBox } from '@anticrm/ui'
import { afterUpdate, createEventDispatcher, onMount } from 'svelte'
import contact from '../plugin'
import ChannelsEditor from './ChannelsEditor.svelte'
@ -138,24 +138,14 @@
</div>
<div class="separator" />
<div class="flex-between">
<div class="flex-row-center">
<ChannelsEditor
attachedTo={object._id}
attachedClass={object._class}
{editable}
bind:integrations
shape={'circle'}
/>
</div>
<div class="flex-row-center">
<div class="over-underline flex-row-center" on:click>
<CircleButton icon={IconActivity} size={'small'} primary on:click />
<span class="ml-2 text-sm"><Label label={contact.string.ViewActivity} /></span>
</div>
</div>
<div class="flex-row-center">
<ChannelsEditor
attachedTo={object._id}
attachedClass={object._class}
{editable}
bind:integrations
shape={'circle'}
/>
</div>
</div>
</div>
@ -175,6 +165,6 @@
.separator {
margin: 1rem 0;
height: 1px;
background-color: var(--theme-card-divider);
background-color: var(--divider-color);
}
</style>

View File

@ -121,6 +121,7 @@
<Button
label={action.i18n}
kind={'primary'}
size={'x-large'}
width="100%"
loading={inAction}
disabled={status.severity !== Severity.OK && status.severity !== Severity.ERROR}