Skip to content

Commit fa34ef9

Browse files
Push toolbar to the bottom of the view (#11)
* Push toolbar to the bottom of the view * Rename added class * Adjust form width --------- Co-authored-by: Greg <[email protected]>
1 parent 257e7f7 commit fa34ef9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/widgets/RootDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const RootDisplay = ({ node, modelRegistryChanged }: IRootDisplayProps) => {
1818
useEffect(() => {
1919
if (childRef.current) {
2020
const parent = (childRef.current as HTMLElement).parentElement;
21-
parent?.classList.add('overflow');
21+
parent?.classList.add('jlab-gather-overflow');
2222
}
2323
}, [childRef]);
2424

style/base.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.jlab-gather-form {
66
box-shadow: var(--jp-input-box-shadow);
7-
max-width: 450px;
7+
width: 400px;
88
margin: 30px auto;
99
padding: 20px;
1010
border-radius: var(--gather-border-radius);
@@ -30,6 +30,10 @@
3030
.jlab-gather-root {
3131
width: 100%;
3232
height: 100%;
33+
display: flex;
34+
justify-content: space-between;
35+
flex-direction: column;
36+
align-items: center;
3337
}
3438

3539
.jlab-gather-form-input {
@@ -128,10 +132,10 @@
128132
justify-content: center;
129133
gap: 0.25rem;
130134
position: sticky;
135+
height: 64px;
131136
z-index: 10;
132137
bottom: 0;
133138
width: fit-content;
134-
margin: auto;
135139
padding: 15px;
136140
background-color: rgb(187 222 251 / 50%);
137141
border-radius: var(--gather-border-radius);

0 commit comments

Comments
 (0)