Skip to content

Commit ea72d85

Browse files
committed
style: update
1 parent 08f8767 commit ea72d85

File tree

5 files changed

+7
-47
lines changed

5 files changed

+7
-47
lines changed

src/extensions/Emoji/components/EmojiList/EmojiList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const EmojiList: React.FC<IProps> = forwardRef((props, ref) => {
7070
}));
7171

7272
return (
73-
<div className="richtext-max-h-[320px] richtext-w-[200px] richtext-overflow-y-auto richtext-overflow-x-hidden richtext-rounded-sm !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none">
73+
<div className="richtext-max-h-[320px] richtext-w-[200px] richtext-overflow-y-auto richtext-overflow-x-hidden richtext-rounded-md !richtext-border !richtext-border-[hsl(var(--richtext-border))] richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none">
7474
<div ref={$container}>
7575
{props.items.length > 0
7676
? (

src/extensions/Mention/components/NodeViewMentionList/NodeViewMentionList.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import type { Editor } from '@tiptap/core';
77
import clsx from 'clsx';
88
import scrollIntoView from 'scroll-into-view-if-needed';
99

10-
import styles from './index.module.scss';
11-
1210
interface IProps {
1311
editor: Editor
1412
items: Array<string>
@@ -71,13 +69,13 @@ export const NodeViewMentionList: React.FC<IProps> = forwardRef((props, ref) =>
7169
}));
7270

7371
return (
74-
<div className={clsx('listUsers', styles.listUsers)}>
72+
<div className={' !richtext-max-h-[320px] !richtext-w-[160px] richtext-overflow-y-auto richtext-overflow-x-hidden richtext-rounded-md !richtext-border !richtext-border-[hsl(var(--richtext-border))] richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none'}>
7573
<div ref={$container}>
7674
{props.items.length > 0
7775
? (
7876
props.items.map((item, index) => (
7977
<span
80-
className={clsx('itemUser', styles.itemUser, index === selectedIndex ? styles.selectedUser : '')}
78+
className={clsx('richtext-flex richtext-w-full richtext-items-center richtext-gap-3 richtext-rounded-sm !richtext-border-none !richtext-bg-transparent richtext-px-2 richtext-py-1.5 richtext-text-left richtext-text-sm !richtext-text-neutral-800 !richtext-outline-none richtext-transition-colors hover:!richtext-bg-accent dark:!richtext-text-neutral-200', { 'bg-item-active': index === selectedIndex })}
8179
key={index}
8280
onClick={() => selectItem(index)}
8381
>
@@ -86,7 +84,7 @@ export const NodeViewMentionList: React.FC<IProps> = forwardRef((props, ref) =>
8684
))
8785
)
8886
: (
89-
<div className={clsx('itemUserEmpty', styles.itemUser)}>
87+
<div className={clsx('itemUserEmpty')}>
9088
Empty
9189
</div>
9290
)}

src/extensions/Mention/components/NodeViewMentionList/index.module.scss

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/extensions/SlashCommand/components/CommandsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function CommandsList(props: any, ref: any) {
122122

123123
return (
124124
<div
125-
className="richtext-max-h-[min(80vh,24rem)] richtext-flex-wrap richtext-overflow-auto richtext-rounded-lg !richtext-border !richtext-border-neutral-200 !richtext-bg-white richtext-p-1 !richtext-text-black richtext-shadow-sm dark:!richtext-border-neutral-800 dark:!richtext-bg-black"
125+
className="richtext-max-h-[min(80vh,24rem)] richtext-flex-wrap richtext-overflow-y-auto richtext-overflow-x-hidden richtext-rounded-md !richtext-border !richtext-border-[hsl(var(--richtext-border))] richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none"
126126
ref={scrollContainer}
127127
>
128128
{props?.items?.length
@@ -142,7 +142,7 @@ function CommandsList(props: any, ref: any) {
142142
onClick={() => createCommandClickHandler(groupIndex, commandIndex)}
143143
ref={el => setActiveItemRef(groupIndex, commandIndex, el)}
144144
className={cn('richtext-flex richtext-items-center richtext-gap-3 richtext-px-2 richtext-py-1.5 richtext-text-sm !richtext-text-neutral-800 dark:!richtext-text-neutral-200 richtext-text-left richtext-w-full richtext-rounded-sm !richtext-outline-none !richtext-border-none richtext-transition-colors !richtext-bg-transparent hover:!richtext-bg-accent ', {
145-
'slash-command-active': selectedGroupIndex === groupIndex && selectedCommandIndex === commandIndex,
145+
'bg-item-active': selectedGroupIndex === groupIndex && selectedCommandIndex === commandIndex,
146146
})}
147147
>
148148
{command.iconUrl && <img alt=""

src/styles/editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
}
267267
}
268268

269-
.slash-command-active.slash-command-active {
269+
.bg-item-active.bg-item-active {
270270
background-color: hsl(var(--accent)) !important;
271271
}
272272

0 commit comments

Comments
 (0)