react-base-history-tab

This commit is contained in:
caranicas 2022-10-01 20:25:27 -04:00
parent 79bb66f535
commit 3271c5a60b
6 changed files with 53 additions and 21 deletions

View File

@ -1,5 +1,5 @@
import { style, globalStyle } from "@vanilla-extract/css";
import { vars } from "../../../styles/theme/index.css";
import {
tabPanelStyles,
} from "../../_recipes/tabs_headless.css";
@ -7,8 +7,28 @@ import {
export const TabpanelScrollFlop = style([tabPanelStyles(), {
direction: 'rtl',
// position: 'relative',
overflow: 'overlay',
"::-webkit-scrollbar": {
position: 'absolute',
width: "6px",
backgroundColor: vars.backgroundAccentMain,
},
"::-webkit-scrollbar-thumb": {
backgroundColor: vars.backgroundDark,
borderRadius: "4px",
},
// "::-webkit-scrollbar-button: {
// backgroundColor: vars.backgroundDark,
// }
}]);
globalStyle(`${TabpanelScrollFlop} > *`, {
direction: 'ltr',
});

View File

@ -39,6 +39,20 @@ export const basicDisplayLayout = style({
// "content"`,
},
},
// "@media": {
// "screen and (max-width: 800px)": {
// gridTemplateColumns: "1fr",
// gridTemplateRows: "100px 300px 1fr",
// gridTemplateAreas: `
// "header"
// "create"
// "display"
// `,
// },
// },
});
// globalStyle(`${basicDisplayLayout}.hideHistory`, {

View File

@ -26,17 +26,15 @@ export default function BasicDisplay() {
useEffect(() => {
if (void 0 !== layoutRef.current) {
if (layoutRef.current != undefined) {
// set the hide-history data attribute
if (isShowingHistory) {
layoutRef.current.removeAttribute('data-hide-history');
}
else {
// layoutRef.current.dataset.hideHistory = "true";
layoutRef.current.setAttribute('data-hide-history', {});
layoutRef.current.setAttribute('data-hide-history', '');
}
}
}, [layoutRef, isShowingHistory]);

View File

@ -14,12 +14,12 @@ import {
buttonStyle
} from "../../_recipes/button.css";
import { Transition } from '@headlessui/react'
// import { Transition } from '@headlessui/react'
import {
tabStyles
} from "../../_recipes/tabs_headless.css";
// import {
// tabStyles
// } from "../../_recipes/tabs_headless.css";
export default function CompletedImages(

View File

@ -12,7 +12,7 @@ export default function CreationActions() {
return (
<div className={CreationActionMain}>
<MakeButton></MakeButton>
<ShowQueue></ShowQueue>
{/* <ShowQueue></ShowQueue> */}
</div>
);
}

View File

@ -18,17 +18,17 @@ export const AppLayout = style({
`,
"@media": {
"screen and (max-width: 800px)": {
gridTemplateColumns: "1fr",
gridTemplateRows: "100px 300px 1fr",
gridTemplateAreas: `
"header"
"create"
"display"
`,
},
},
// "@media": {
// "screen and (max-width: 800px)": {
// gridTemplateColumns: "1fr",
// gridTemplateRows: "100px 300px 1fr",
// gridTemplateAreas: `
// "header"
// "create"
// "display"
// `,
// },
// },
});
export const HeaderLayout = style({