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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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