Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: project emoji icon improvement (#3837)

Anmol Singh Bhatia62693abb0992
diff --git a/web/components/emoji-icon-picker/index.tsx b/web/components/emoji-icon-picker/index.tsx
index 0c72b986a1..57d5d88967 100644
--- a/web/components/emoji-icon-picker/index.tsx
+++ b/web/components/emoji-icon-picker/index.tsx
@@ -53,7 +53,7 @@ const EmojiIconPicker: React.FC<Props> = (props) => {
<Popover.Button
ref={buttonRef}
onClick={() => setIsOpen((prev) => !prev)}
- className="outline-none"
+ className="outline-none flex items-center justify-center"
disabled={disabled}
>
{label}
diff --git a/web/helpers/emoji.helper.tsx b/web/helpers/emoji.helper.tsx
index 026211634e..5ff95027b5 100644
--- a/web/helpers/emoji.helper.tsx
+++ b/web/helpers/emoji.helper.tsx
@@ -30,7 +30,7 @@ export const renderEmoji = (
if (typeof emoji === "object")
return (
- <span style={{ color: emoji.color }} className="material-symbols-rounded !text-sm">
+ <span style={{ fontSize: "16px", color: emoji.color }} className="material-symbols-rounded">
{emoji.name}
</span>
);
@@ -41,16 +41,13 @@ export const groupReactions: (reactions: any[], key: string) => { [key: string]:
reactions: any,
key: string
) => {
- const groupedReactions = reactions.reduce(
- (acc: any, reaction: any) => {
- if (!acc[reaction[key]]) {
- acc[reaction[key]] = [];
- }
- acc[reaction[key]].push(reaction);
- return acc;
- },
- {} as { [key: string]: any[] }
- );
+ const groupedReactions = reactions.reduce((acc: any, reaction: any) => {
+ if (!acc[reaction[key]]) {
+ acc[reaction[key]] = [];
+ }
+ acc[reaction[key]].push(reaction);
+ return acc;
+ }, {} as { [key: string]: any[] });
return groupedReactions;
};