Skip to content

Commit aeda40a

Browse files
author
Filip Hric
committed
fix scrolling issues
1 parent 7408d42 commit aeda40a

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

src/components/Navbar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<nav>
2+
<nav class="shadow-xl">
33
<button
44
data-cy="home"
55
:class="[route.path !== '/' ? 'visible' : 'invisible']"

src/components/board/BoardDetail.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<!-- BOARD DETAIL -->
3131
<div
3232
v-if="!state.loading && !state.loadingError.show"
33-
class="overflow-x-auto min-h-screen whitespace-nowrap"
33+
class="overflow-x-auto whitespace-nowrap board-detail"
3434
data-cy="board-detail"
3535
>
3636
<div class="py-2.5">
@@ -75,14 +75,14 @@
7575
>
7676
<template #item="{ element }">
7777
<div
78-
class="inline-block h-full align-top"
78+
class="inline-block align-top"
7979
data-cy="list-placeholder"
8080
>
8181
<ListItem :list="element" />
8282
</div>
8383
</template>
8484
</draggable>
85-
<div class="inline-block h-full align-top">
85+
<div class="inline-block align-top">
8686
<ListCreate :board="state.board.id" />
8787
</div>
8888
</div>
@@ -113,6 +113,10 @@ const onClickAway = () => {
113113
</script>
114114

115115
<style lang="postcss" scoped>
116+
.board-detail {
117+
height: calc(100vh - 40px);
118+
}
119+
116120
.board-title:focus {
117121
@apply bg-gray1 bg-opacity-100 hover:bg-opacity-100 text-black;
118122
}

src/components/board/BoardItem.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
>
77
<div
88
class="board"
9+
:id="'board-' + board.id"
910
data-cy="board-item"
1011
@click="navigate"
1112
@mouseover="showStar = true"
1213
@mouseout="showStar = false"
1314
>
14-
<h1>
15+
<h2>
1516
{{ board.name }}
16-
</h1>
17+
</h2>
1718
<div
1819
v-show="showStar"
1920
data-cy="star"
@@ -53,7 +54,7 @@ let showStar = ref(false);
5354
.star {
5455
@apply justify-self-end self-start;
5556
}
56-
h1 {
57+
h2 {
5758
@apply text-white font-bold col-span-5;
5859
}
5960
</style>

src/components/boardList/BoardList.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="grid h-screen bg-white background"
3+
class="grid h-screen bg-white background board-list"
44
data-cy="board-list"
55
>
66
<!-- LOADING -->
@@ -60,3 +60,8 @@ import Loading from '@/components/Loading.vue';
6060
const state = useStore();
6161
state.getBoardList();
6262
</script>
63+
<style lang="postcss" scoped>
64+
.board-list {
65+
height: calc(100vh - 40px);
66+
}
67+
</style>

src/views/Board.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="h-screen bg-blue6">
2+
<div class="bg-blue6">
33
<CardDetail v-if="cardModule" />
44
<BoardDetail />
55
</div>

0 commit comments

Comments
 (0)