Return hover with border inside doc activity (#4500)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-02-02 19:32:29 +04:00 committed by GitHub
parent 38d4a1e367
commit c89eecc833
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 19 additions and 11 deletions

View File

@ -41,6 +41,7 @@
export let excludedActions: string[] = []
export let actions: Action[] = []
export let hoverable = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let onClick: (() => void) | undefined = undefined
$: personAccount = $personAccountByIdStore.get((value.createdBy ?? value.modifiedBy) as Ref<PersonAccount>)
@ -74,6 +75,7 @@
{excludedActions}
{withFlatActions}
{hoverable}
{hoverStyles}
viewlet={undefined}
{onClick}
>

View File

@ -33,6 +33,7 @@
export let excludedActions: string[] = []
export let withFlatActions: boolean = true
export let hoverable = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined
@ -60,6 +61,7 @@
excludedActions,
withFlatActions,
hoverable,
hoverStyles,
onClick,
onReply
}}

View File

@ -49,7 +49,7 @@
export let hideFooter = false
export let skipLabel = false
export let hoverable = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'filledHover'
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined

View File

@ -50,6 +50,7 @@
export let withFlatActions: boolean = true
export let excludedActions: string[] = []
export let hoverable = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined
@ -159,6 +160,7 @@
{skipLabel}
{withFlatActions}
{hoverable}
{hoverStyles}
{onClick}
{onReply}
>

View File

@ -384,6 +384,7 @@
value={message}
skipLabel={skipLabels}
{showEmbedded}
hoverStyles="filledHover"
isHighlighted={isSelected}
shouldScroll={isSelected}
/>

View File

@ -44,13 +44,13 @@
export let withFlatActions: boolean = true
export let hoverable = true
export let inline = false
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined
const client = getClient()
const hierarchy = client.getHierarchy()
const viewletQuery = createQuery()
const userQuery = createQuery()
const currentAccount = getCurrentAccount()
@ -175,6 +175,7 @@
{hideFooter}
{withFlatActions}
{hoverable}
{hoverStyles}
{onClick}
{onReply}
>

View File

@ -147,14 +147,12 @@
<div class="separator" />
{/if}
{#if contexts.length}
<div class="block">
<ChatGroupHeader header={model.label} actions={getGroupActions()} />
{#each contexts as context (context._id)}
<ChatNavItem {context} isSelected={selectedContextId === context._id} on:select />
{/each}
</div>
{/if}
<div class="block">
<ChatGroupHeader header={model.label} actions={getGroupActions()} />
{#each contexts as context (context._id)}
<ChatNavItem {context} isSelected={selectedContextId === context._id} on:select />
{/each}
</div>
</Scroller>
<style lang="scss">

View File

@ -30,6 +30,7 @@
export let actions: Action[] = []
export let excludedActions: string[] = []
export let hoverable = true
export let hoverStyles: 'borderedHover' | 'filledHover' = 'borderedHover'
export let onClick: (() => void) | undefined = undefined
export let onReply: (() => void) | undefined = undefined
</script>
@ -48,6 +49,7 @@
{excludedActions}
{actions}
{hoverable}
{hoverStyles}
{onClick}
{onReply}
/>

View File

@ -19,4 +19,4 @@
export let message: ActivityMessage
</script>
<ActivityMessagePresenter value={message} hideFooter />
<ActivityMessagePresenter value={message} hideFooter hoverStyles="filledHover" />