feat: Implement inertial horizontal scrolling for carousel components and enhance text selection handling

This commit is contained in:
2026-05-17 16:22:57 +10:00
parent b9b0dce40b
commit af02b215f4
6 changed files with 424 additions and 11 deletions

View File

@@ -35,6 +35,7 @@ export const MessageTextBody = as<'div', css.MessageTextBodyVariants & { notice?
size="T400"
priority={notice ? '300' : '400'}
className={classNames(css.MessageTextBody({ preWrap, jumboEmoji, emote }), className)}
data-allow-text-selection="true"
{...props}
ref={ref}
/>

View File

@@ -215,6 +215,8 @@ export const MessageTextBody = recipe({
overflow: 'clip',
overflowY: 'clip',
lineHeight: '1.5',
userSelect: 'text',
WebkitUserSelect: 'text',
},
variants: {
preWrap: {