Files
commafeed/commafeed-client/src/app/constants.ts

18 lines
557 B
TypeScript
Raw Normal View History

import { DEFAULT_THEME } from "@mantine/core"
export const Constants = {
categoryIds: {
all: "all",
},
layout: {
mobileBreakpoint: DEFAULT_THEME.breakpoints.md,
headerHeight: 60,
sidebarWidth: 350,
isTopVisible: (div: HTMLDivElement) => div.getBoundingClientRect().top >= Constants.layout.headerHeight,
isBottomVisible: (div: HTMLDivElement) => div.getBoundingClientRect().bottom <= window.innerHeight,
},
dom: {
mainScrollAreaId: "main-scroll-area-id",
},
}