Skip to content

Commit

Permalink
fix(kslideout): content being taller than viewport when using props.o…
Browse files Browse the repository at this point in the history
…ffsetTop

Fixes the content area always as tall as the viewport when using `props.offsetTop` making it too tall.

Signed-off-by: Philipp Rudloff <[email protected]>
  • Loading branch information
Philipp Rudloff committed Nov 6, 2023
1 parent b3a2783 commit bca403c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KSlideout/KSlideout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const offsetTopValue = computed((): string => {
background-color: var(--kui-color-background, $kui-color-background);
display: flex;
flex-direction: column;
height: 100vh;
height: calc(100vh - v-bind('offsetTopValue'));
max-width: 500px;
overflow-y: auto;
position: fixed;
Expand Down

0 comments on commit bca403c

Please sign in to comment.