Updated layout of the Chat header ()

Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
Alexander Platov 2024-05-20 06:37:06 +03:00 committed by GitHub
parent 9337583bd8
commit a22062cad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 26 deletions
plugins/chunter-resources/src/components

View File

@ -41,7 +41,7 @@
let avatarSize = size
$: if (size === 'small') {
avatarSize = 'tiny'
avatarSize = 'x-small'
}
function getAccountByPerson (accountById: IdMap<PersonAccount>, person: Person): Account | undefined {

View File

@ -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}

View File

@ -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>

View File

@ -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}