Skip to content

Commit

Permalink
Fix incorrect breakpoint calculation (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
YassienW authored Jun 23, 2023
1 parent 829d58d commit c0299a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/breakpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function useThemeBreakpoint(theme: ITheme): string | null {
return (
Object.keys(screns)
.reverse()
.find((screen) => width !== null && width > screns[screen]) || null
.find((screen) => width !== null && width >= screns[screen]) || null
)
}, [screns, width])
}
Expand Down

0 comments on commit c0299a8

Please sign in to comment.