Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/typescript/theunde…
Browse files Browse the repository at this point in the history
…rscorer/nx-semantic-release-2.12.0
  • Loading branch information
w1nklr authored Oct 22, 2024
2 parents ad5b447 + 866b25d commit 8e5070b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,23 @@ import { tabDecorator } from "./helpers/MuiComponentsTabHelper";
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports
const args = require("../../../../../example-data/facies3wells.json");

const RTCWellLogViewer: React.FunctionComponent = () => {
interface IRTCWellLogViewerProps {
width?: string;
}

const RTCWellLogViewer: React.FunctionComponent<IRTCWellLogViewerProps> = (
props
) => {
return (
<Grid container direction={"column"} justifyContent="flex-start">
<div style={{ width: "100%", height: "100%" }}>
<div
data-testid="well-log-views"
style={{ width: "100%", height: "90vh" }}
style={{
width: props.width ?? "100%",
height: "80vh",
position: "relative",
}}
>
<SyncLogViewer {...{ ...args, id: "c1" }} />
</div>
Expand All @@ -42,3 +52,12 @@ export const RTCTabsLayout: StoryObj<typeof RTCWellLogViewer> = {
</React.StrictMode>
),
};

export const RTCTabsLayoutWithScrollbar: StoryObj<typeof RTCWellLogViewer> = {
decorators: [tabDecorator],
render: () => (
<React.StrictMode>
<RTCWellLogViewer {...{ width: "1700px" }} />
</React.StrictMode>
),
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const TestComponentArea: React.FC<React.PropsWithChildren> = ({ children }) => {
//---------------------------------------------------------------------------------
// The Page rendering
//---------------------------------------------------------------------------------

const direction: GridDirection = "column";

const ref = React.useRef(null);
Expand All @@ -72,7 +71,7 @@ const TestComponentArea: React.FC<React.PropsWithChildren> = ({ children }) => {
const testComponent = renderTestComponent(renderer, ref, tab);

return (
<div>
<div style={{ overflow: "auto" }}>
<Grid container direction={direction} justifyContent="flex-start">
<div>tab title</div>
{testComponent}
Expand Down

0 comments on commit 8e5070b

Please sign in to comment.