Skip to content

Commit

Permalink
fix: emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Apr 10, 2024
1 parent a760740 commit 43b7f9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { BoardFacade } from '../../../../services/board-facade.service';
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
import { VotesModalComponent } from '../votes-modal/votes-modal.component';
import { Group, Note, TuNode } from '@team-up/board-commons';
import { selectVoting } from '../../selectors/page.selectors';
import { selectEmoji, selectVoting } from '../../selectors/page.selectors';
import { CommentsStore } from '@team-up/nodes/comments/comments.store';
import { NodesActions } from '@team-up/nodes/services/nodes-actions';

Expand All @@ -39,6 +39,7 @@ export class BoardContextMenuComponent implements OnInit {
private boardComponent = inject(BoardComponent);
private dialog = inject(MatDialog);
private voting = this.store.selectSignal(selectVoting);
private emoji = this.store.selectSignal(selectEmoji);
private commentsStore = inject(CommentsStore);
private nodesActions = inject(NodesActions);
private showUserVotes = this.store.selectSignal(pageFeature.selectVoting);
Expand All @@ -57,6 +58,12 @@ export class BoardContextMenuComponent implements OnInit {
return !currentNodes.some((node) => {
return node.type === 'note' || node.type === 'group';
});
} else if (this.emoji()) {
const currentNodes = this.boardFacade.selectFocusNodes();

return !currentNodes.some((node) => {
return node.type === 'note';
});
}

return true;
Expand Down
1 change: 0 additions & 1 deletion libs/nodes/src/lib/note/note.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ textarea {
"Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji",
sans-serif;
font-size: 1.375rem;
z-index: -1;
width: var(--emoji-width);
height: var(--emoji-height);
}
Expand Down

0 comments on commit 43b7f9c

Please sign in to comment.