mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 17:30:03 +00:00
Updated layout of the Chat header (#5618)
Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
parent
9337583bd8
commit
a22062cad5
plugins/chunter-resources/src/components
@ -41,7 +41,7 @@
|
||||
let avatarSize = size
|
||||
|
||||
$: if (size === 'small') {
|
||||
avatarSize = 'tiny'
|
||||
avatarSize = 'x-small'
|
||||
}
|
||||
|
||||
function getAccountByPerson (accountById: IdMap<PersonAccount>, person: Person): Account | undefined {
|
||||
|
@ -72,11 +72,6 @@
|
||||
/>
|
||||
<div class="antiHSpacer x2" />
|
||||
{/if}
|
||||
{#if withFilters}
|
||||
<div class="mr-2">
|
||||
<ChannelMessagesFilter bind:selectedFilters={filters} />
|
||||
</div>
|
||||
{/if}
|
||||
<slot />
|
||||
{#if titleKind === 'breadcrumbs'}
|
||||
<Breadcrumbs
|
||||
@ -91,7 +86,7 @@
|
||||
/>
|
||||
{:else}
|
||||
{#if icon}
|
||||
<div class="ac-header__icon">
|
||||
<div class="ac-header__icon pl-2">
|
||||
<Icon {icon} size={'small'} {iconProps} />
|
||||
</div>
|
||||
{/if}
|
||||
@ -108,6 +103,9 @@
|
||||
<div class="ac-header__description over-underline" style="flex: 1" title={description}>{description}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{#if withFilters}
|
||||
<ChannelMessagesFilter bind:selectedFilters={filters} />
|
||||
{/if}
|
||||
{#if canOpen && object}
|
||||
<Button
|
||||
icon={view.icon.Open}
|
||||
|
@ -13,10 +13,9 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { eventToHTMLElement, Label, ModernButton, showPopup } from '@hcengineering/ui'
|
||||
import { eventToHTMLElement, Label, ModernButton, showPopup, Icon } from '@hcengineering/ui'
|
||||
import PinnedMessagesPopup from './PinnedMessagesPopup.svelte'
|
||||
import { createQuery } from '@hcengineering/presentation'
|
||||
import { DocNotifyContext } from '@hcengineering/notification'
|
||||
import activity, { ActivityMessage } from '@hcengineering/activity'
|
||||
import { Class, Doc, Ref } from '@hcengineering/core'
|
||||
import view from '@hcengineering/view'
|
||||
@ -43,19 +42,9 @@
|
||||
</script>
|
||||
|
||||
{#if pinnedMessagesCount > 0}
|
||||
<div class="mr-2">
|
||||
<ModernButton
|
||||
icon={view.icon.Pin}
|
||||
size="small"
|
||||
label={chunter.string.PinnedCount}
|
||||
labelParams={{ count: pinnedMessagesCount }}
|
||||
on:click={openMessagesPopup}
|
||||
/>
|
||||
</div>
|
||||
<div class="antiHSpacer x2" />
|
||||
<ModernButton size={'extra-small'} on:click={openMessagesPopup}>
|
||||
<Icon icon={view.icon.Pin} size={'x-small'} />
|
||||
<span class="text-sm"><Label label={chunter.string.PinnedCount} params={{ count: pinnedMessagesCount }} /></span>
|
||||
</ModernButton>
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
.container {
|
||||
padding-left: 2.5rem;
|
||||
}
|
||||
</style>
|
||||
|
@ -70,8 +70,8 @@
|
||||
<Header icon={activity.icon.Bookmark} intlLabel={chunter.string.Saved} titleKind="breadcrumbs" />
|
||||
</div>
|
||||
|
||||
<div class="body h-full w-full">
|
||||
<Scroller padding="0.75rem 0.5rem">
|
||||
<div class="body h-full w-full clear-mins">
|
||||
<Scroller padding={'.75rem .5rem'} bottomPadding={'.75rem'}>
|
||||
{#if savedMessages.length > 0 || savedAttachments.length > 0}
|
||||
{#each savedMessages as message}
|
||||
{#if message.$lookup?.attachedTo}
|
||||
|
Loading…
Reference in New Issue
Block a user