Fix activity actions icons (#5343)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-04-12 23:21:56 +04:00 committed by GitHub
parent ca200c9991
commit 40c292aa58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -13,13 +13,13 @@
// limitations under the License. // limitations under the License.
--> -->
<script lang="ts"> <script lang="ts">
import { type AnySvelteComponent, ButtonIcon } from '@hcengineering/ui' import { type AnySvelteComponent, ButtonIcon, IconSize } from '@hcengineering/ui'
import { Asset } from '@hcengineering/platform' import { Asset } from '@hcengineering/platform'
import { ComponentType } from 'svelte' import { ComponentType } from 'svelte'
export let icon: Asset | AnySvelteComponent | ComponentType export let icon: Asset | AnySvelteComponent | ComponentType
export let iconProps: any | undefined = undefined export let iconProps: any | undefined = undefined
export let size: 'x-small' | 'small' = 'small' export let size: IconSize = 'small'
export let action: (ev: MouseEvent) => Promise<void> | void = async () => {} export let action: (ev: MouseEvent) => Promise<void> | void = async () => {}
export let opened = false export let opened = false

View File

@ -14,7 +14,7 @@
--> -->
<script lang="ts"> <script lang="ts">
import { createEventDispatcher } from 'svelte' import { createEventDispatcher } from 'svelte'
import { EmojiPopup, IconEmoji, showPopup } from '@hcengineering/ui' import { EmojiPopup, showPopup } from '@hcengineering/ui'
import { createQuery, getClient } from '@hcengineering/presentation' import { createQuery, getClient } from '@hcengineering/presentation'
import activity, { ActivityMessage, Reaction } from '@hcengineering/activity' import activity, { ActivityMessage, Reaction } from '@hcengineering/activity'
@ -49,4 +49,4 @@
} }
</script> </script>
<ActivityMessageAction icon={IconEmoji} action={openEmojiPalette} opened={isOpened} /> <ActivityMessageAction icon={activity.icon.Emoji} action={openEmojiPalette} opened={isOpened} />

View File

@ -8,8 +8,8 @@
<symbol id="lock" viewBox="0 0 16 16"> <symbol id="lock" viewBox="0 0 16 16">
<path d="M12,7.1h-0.7V5.4c0-1.8-1.5-3.3-3.3-3.3c-1.8,0-3.3,1.5-3.3,3.3v1.7H4c-0.8,0-1.5,0.7-1.5,1.5v4.1c0,0.8,0.7,1.5,1.5,1.5h8 c0.8,0,1.5-0.7,1.5-1.5V8.6C13.5,7.8,12.8,7.1,12,7.1z M5.7,5.4c0-1.2,1-2.3,2.3-2.3s2.3,1,2.3,2.3v1.7H5.7V5.4z M12.5,12.7 c0,0.3-0.2,0.5-0.5,0.5H4c-0.3,0-0.5-0.2-0.5-0.5V8.6c0-0.3,0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5V12.7z"/> <path d="M12,7.1h-0.7V5.4c0-1.8-1.5-3.3-3.3-3.3c-1.8,0-3.3,1.5-3.3,3.3v1.7H4c-0.8,0-1.5,0.7-1.5,1.5v4.1c0,0.8,0.7,1.5,1.5,1.5h8 c0.8,0,1.5-0.7,1.5-1.5V8.6C13.5,7.8,12.8,7.1,12,7.1z M5.7,5.4c0-1.2,1-2.3,2.3-2.3s2.3,1,2.3,2.3v1.7H5.7V5.4z M12.5,12.7 c0,0.3-0.2,0.5-0.5,0.5H4c-0.3,0-0.5-0.2-0.5-0.5V8.6c0-0.3,0.2-0.5,0.5-0.5h8c0.3,0,0.5,0.2,0.5,0.5V12.7z"/>
</symbol> </symbol>
<symbol id="thread" viewBox="0 0 28 24"> <symbol id="thread" viewBox="0 0 32 32">
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 2.00012C7.20948 2.00012 2 6.62735 2 12.0001C2 14.1621 2.82539 16.1784 4.25857 17.8354C4.48585 18.0982 4.56044 18.4602 4.45559 18.7914C4.11025 19.8823 3.59859 20.905 2.96437 21.8563C4.36749 21.6498 5.72455 21.2237 6.98685 20.5983C7.26684 20.4596 7.59558 20.4598 7.87546 20.5987C9.66322 21.4863 11.7558 22.0001 14 22.0001C20.7905 22.0001 26 17.3729 26 12.0001C26 6.62735 20.7905 2.00012 14 2.00012ZM1.55557e-06 12.0001C1.55557e-06 5.22263 6.43112 0.00012207 14 0.00012207C21.5689 0.00012207 28 5.22263 28 12.0001C28 18.7776 21.5689 24.0001 14 24.0001C11.6319 24.0001 9.39442 23.4964 7.43078 22.6017C5.4311 23.5145 3.24057 24.0001 1 24.0001C0.631206 24.0001 0.292346 23.7971 0.118327 23.472C-0.0556921 23.1468 -0.0366195 22.7523 0.167951 22.4454L1.37487 20.635C1.78033 20.0268 2.11535 19.375 2.37375 18.6921C0.884016 16.7926 1.55557e-06 14.4912 1.55557e-06 12.0001Z" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M16 6C9.20948 6 4 10.6272 4 16C4 18.1619 4.82539 20.1782 6.25857 21.8353C6.48585 22.0981 6.56044 22.46 6.45559 22.7913C6.11025 23.8822 5.59859 24.9049 4.96437 25.8562C6.36749 25.6496 7.72455 25.2236 8.98685 24.5982C9.26684 24.4595 9.59558 24.4596 9.87546 24.5986C11.6632 25.4861 13.7558 26 16 26C22.7905 26 28 21.3728 28 16C28 10.6272 22.7905 6 16 6ZM2 16C2 9.2225 8.43112 4 16 4C23.5689 4 30 9.2225 30 16C30 22.7775 23.5689 28 16 28C13.6319 28 11.3944 27.4963 9.43078 26.6016C7.4311 27.5144 5.24057 28 3 28C2.63121 28 2.29235 27.797 2.11833 27.4719C1.94431 27.1467 1.96338 26.7522 2.16795 26.4453L3.37487 24.6349C3.78033 24.0267 4.11535 23.3749 4.37375 22.692C2.88402 20.7925 2 18.4911 2 16Z"/>
</symbol> </symbol>
<symbol id="channelbrowser" viewBox="0 0 24 24"> <symbol id="channelbrowser" viewBox="0 0 24 24">
<path d="M12.4,20.2H8.6c-4.3,0-5.9-1.6-5.9-5.8V8.7c0-4.4,1.5-6,5.9-6h5.7c4.4,0,6,1.6,6,6v3.7c0,0.4,0.3,0.7,0.8,0.7 s0.8-0.3,0.8-0.7V8.7c0-5.2-2.2-7.5-7.5-7.5H8.6c-5.2,0-7.4,2.2-7.4,7.5v5.7c0,5.1,2.3,7.3,7.4,7.3h3.8c0.4,0,0.7-0.3,0.7-0.8 S12.8,20.2,12.4,20.2z" /> <path d="M12.4,20.2H8.6c-4.3,0-5.9-1.6-5.9-5.8V8.7c0-4.4,1.5-6,5.9-6h5.7c4.4,0,6,1.6,6,6v3.7c0,0.4,0.3,0.7,0.8,0.7 s0.8-0.3,0.8-0.7V8.7c0-5.2-2.2-7.5-7.5-7.5H8.6c-5.2,0-7.4,2.2-7.4,7.5v5.7c0,5.1,2.3,7.3,7.4,7.3h3.8c0.4,0,0.7-0.3,0.7-0.8 S12.8,20.2,12.4,20.2z" />

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -28,5 +28,5 @@
</script> </script>
{#if canReplyToThread(object)} {#if canReplyToThread(object)}
<ActivityMessageAction size="x-small" icon={chunter.icon.Thread} action={onReply} /> <ActivityMessageAction size="small" icon={chunter.icon.Thread} action={onReply} />
{/if} {/if}