Skip to content

Commit

Permalink
Improve scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Mar 13, 2024
1 parent 25faafa commit f350674
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions arches_rdm/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ const isAuthenticated = ref(false);
body {
margin: 0;
}
#app {
height: 100vh;
}
</style>
4 changes: 1 addition & 3 deletions arches_rdm/src/components/ConceptTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { useGettext } from "vue3-gettext";
import { useToast } from "primevue/usetoast";
import Button from "primevue/button";
import Dropdown from "primevue/dropdown";
import ScrollTop from "primevue/scrolltop";
import Tree from "primevue/tree";
import { bestLabel } from "@/utils";
Expand Down Expand Up @@ -233,7 +232,7 @@ await fetchSchemes();
filter-mode="lenient"
selection-mode="single"
:pt="{
root: { style: { flexGrow: 1 } },
root: { style: { flexGrow: 1, overflow: 'auto' } },
input: { style: { height: '2rem', fontSize: '14px' } },
container: { style: { fontSize: '14px' } },
content: ({ context }): { context: TreeContext } => ({
Expand Down Expand Up @@ -269,7 +268,6 @@ await fetchSchemes();
/>
</template>
</Tree>
<ScrollTop/>
</template>

<style scoped>
Expand Down
8 changes: 7 additions & 1 deletion arches_rdm/src/components/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const signOut = () => {

<style scoped>
main {
height: 100vh;
height: 100%;
display: flex;
flex-direction: column;
}
Expand Down Expand Up @@ -84,5 +84,11 @@ h1 {
.p-splitter {
border: 0;
flex-grow: 1;
overflow: hidden;
}
.p-splitter-panel {
display: flex;
flex-direction: column;
}
</style>

0 comments on commit f350674

Please sign in to comment.