diff --git a/src/components/Explorer.tsx b/src/components/Explorer.tsx index 4b4dc77..632e48c 100644 --- a/src/components/Explorer.tsx +++ b/src/components/Explorer.tsx @@ -201,7 +201,24 @@ export function ExplorerComponent(props: { "[data-state='expanded']": { width: 350 } - }) + }), + components: { + Text: { + styles: theme => ({ + root: { + fontSize: theme.fontSizes.sm // Apply small font size to Text component + } + }) + } + // Add other component customizations here + }, + fontSizes: { + xs: "0.75rem", + sm: "0.875rem", + md: "1rem", + lg: "1.125rem", + xl: "1.25rem" + } }} > {content} diff --git a/src/components/Results.tsx b/src/components/Results.tsx index 53bc0eb..d9a06e9 100644 --- a/src/components/Results.tsx +++ b/src/components/Results.tsx @@ -134,20 +134,13 @@ export const useStyles = createStyles(theme => ({ link: { ...theme.fn.focusStyles(), WebkitTapHighlightColor: "transparent", - borderLeft: `${rem(1)} solid ${ - theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[3] - }`, outline: 0, display: "block", textDecoration: "none", color: theme.colorScheme === "dark" ? theme.colors.dark[1] : theme.colors.gray[7], paddingLeft: rem(23), - paddingRight: theme.spacing.md, - marginLeft: rem(7), height: rem(44), lineHeight: rem(44), - borderTopRightRadius: theme.radius.sm, - borderBottomRightRadius: theme.radius.sm, fontSize: theme.fontSizes.md, cursor: "pointer", "&:hover": { @@ -159,7 +152,6 @@ export const useStyles = createStyles(theme => ({ }, linkActive: { - // borderLeftColor: theme.colors.blue[7], backgroundColor: theme.colorScheme === "dark" ? theme.fn.rgba(theme.colors.blue[9], 0.45) diff --git a/src/components/SelectCubes.tsx b/src/components/SelectCubes.tsx index 821ed63..9d4ae31 100644 --- a/src/components/SelectCubes.tsx +++ b/src/components/SelectCubes.tsx @@ -169,8 +169,6 @@ function getCube(items: AnnotatedCube[], table: string, subtopic: string, locale } function useBuildGraph(items, locale, graph, setGraph) { - // const [graph, setGraph] = useState(new Graph()); - useEffect(() => { const graph = new Graph(); items.map(item => { diff --git a/src/components/SideBar.tsx b/src/components/SideBar.tsx index 93b571d..10ba08c 100644 --- a/src/components/SideBar.tsx +++ b/src/components/SideBar.tsx @@ -65,7 +65,7 @@ function SideBar(props: PropsWithChildren) { return ( ({ height: "calc(100vh - 90px)", border: "1px solid", diff --git a/src/components/TableView.tsx b/src/components/TableView.tsx index 3d956b9..3c03d61 100644 --- a/src/components/TableView.tsx +++ b/src/components/TableView.tsx @@ -278,24 +278,24 @@ export function useTable({ }, Header: ({column}) => { return ( - + - + {getActionIcon(entityType)} - + {column.columnDef.header} {getSortIcon(column.getIsSorted(), entityType)} - + {getEntityText(entityType)} @@ -303,7 +303,7 @@ export function useTable({ disabled={!showTrashIcon(finalKeys, entityType)} key={`remove-${column.columnDef.header}`} size={25} - ml={rem(8)} + ml={rem(5)} onClick={() => removeColumn(actions, entity, measures, drilldowns)} > @@ -324,20 +324,20 @@ export function useTable({ return item[columnKey]; }, // not needed in headless implementation. possibly remove. - mantineTableHeadCellProps: { - sx: theme => ({ - // backgroundColor: getEntityColor(column.entityType, theme), - align: isNumeric ? "right" : "left", - height: 140, - paddingBottom: 15, - "& .mantine-TableHeadCell-Content": { - justifyContent: "space-between", - "& .mantine-Indicator-root": { - display: "none" - } - } - }) - }, + // mantineTableHeadCellProps: { + // sx: theme => ({ + // // backgroundColor: getEntityColor(column.entityType, theme), + // align: isNumeric ? "right" : "left", + // height: 100, + // paddingBottom: 15, + // "& .mantine-TableHeadCell-Content": { + // justifyContent: "space-between", + // "& .mantine-Indicator-root": { + // display: "none" + // } + // } + // }) + // }, Cell: isNumeric ? ({cell}) => formatter(cell.getValue()) : ({renderedCellValue}) => { @@ -480,14 +480,7 @@ export function TableView({table}: TableView) { }} > {table.getHeaderGroups().map(headerGroup => ( - + {headerGroup.headers.map(header => { const column = table.getColumn(header.id); if (column.id !== "mrt-row-numbers") { @@ -498,11 +491,10 @@ export function TableView({table}: TableView) { key={header.id} sx={theme => ({ backgroundColor: theme.colors.gray[0], - // backgroundColor: "white", align: isNumeric ? "right" : "left", - height: 140, - paddingBottom: 15, - width: 350, + height: 60, + paddingBottom: 10, + width: 300, position: "sticky", top: 0, display: "table-cell"