mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
fix again (please wokr this time)
This commit is contained in:
1 parent
d9d9e52989
commit
3becee0ded
5 files changed
+16
-6
No files matched your search
@@ -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}
|
||||
|
||||
@@ -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([
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user