fix again (please wokr this time)

This commit is contained in:
7w1 committed 2026-07-21 00:12:00 -05:00
1 parent d9d9e52989
commit 3becee0ded
5 files changed
+16 -6

No files matched your search

+1 -1
View File
@@ -470,7 +470,7 @@ export function RoomNavItem({
radii="400"
highlight={shouldShowUnreadIndicator}
aria-selected={selected}
data-hover={!!menuAnchor || isPressing || isMobileMenuOpen}
data-hover={!!menuAnchor || isPressing}
onContextMenu={handleContextMenu}
{...hoverProps}
{...focusWithinProps}
+1 -1
View File
@@ -10,7 +10,7 @@ export const MessageBaseBubbleCollapsed = style({
});
export const MessageForceHover = style({
backgroundColor: color.Surface.ContainerHover,
backgroundColor: `${color.Surface.ContainerHover} !important`,
});
export const MessageOptionsBase = style([
+8 -3
View File
@@ -27,7 +27,7 @@ export function useMobileLongPress(callback: () => void, delay = 500) {
startY.current = e.touches[0].clientY;
startX.current = e.touches[0].clientX;
}
timerRef.current = setTimeout(() => {
firedRef.current = true;
callback();
@@ -43,7 +43,12 @@ export function useMobileLongPress(callback: () => void, delay = 500) {
const onTouchMove = useCallback(
(e: React.TouchEvent | TouchEvent) => {
if (startY.current === null || startX.current === null || !('touches' in e) || !e.touches[0]) {
if (
startY.current === null ||
startX.current === null ||
!('touches' in e) ||
!e.touches[0]
) {
clear();
return;
}
@@ -56,7 +61,7 @@ export function useMobileLongPress(callback: () => void, delay = 500) {
},
[clear]
);
const onTouchCancel = useCallback(() => clear(), [clear]);
return { onTouchStart, onTouchEnd, onTouchMove, onTouchCancel, firedRef, isPressing };
@@ -27,4 +27,9 @@
html body [data-message-id][data-message-item]:hover {
background-color: transparent !important;
}
* {
-webkit-tap-highlight-color: transparent !important;
-webkit-touch-callout: none !important;
}
}
+1 -1
View File
@@ -120,7 +120,7 @@ describe('SlidingSyncManager initial request', () => {
expect(joined?.ranges).toEqual([[0, 29]]);
expect(joined?.timeline_limit).toBe(1);
expect(joined?.required_state).toHaveLength(8);
expect(joined?.required_state).toHaveLength(10);
expect(joined?.required_state).toContainEqual([EventType.RoomJoinRules, '']);
expect(joined?.required_state).not.toContainEqual(['m.space.child', '*']);
expect(updates).toMatchObject({