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 { style, globalStyle } from "@vanilla-extract/css";
import { vars } from "../../../styles/theme/index.css";
import { import {
tabPanelStyles, tabPanelStyles,
} from "../../_recipes/tabs_headless.css"; } from "../../_recipes/tabs_headless.css";
@ -7,8 +7,28 @@ import {
export const TabpanelScrollFlop = style([tabPanelStyles(), { export const TabpanelScrollFlop = style([tabPanelStyles(), {
direction: 'rtl', 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} > *`, { globalStyle(`${TabpanelScrollFlop} > *`, {
direction: 'ltr', direction: 'ltr',
}); });

View File

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

View File

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

View File

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

View File

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

View File

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