Skip to content

Commit

Permalink
fix: UI - scrollable records in bulk view (#5143)
Browse files Browse the repository at this point in the history
this PR adds min-height to fix the container height
  • Loading branch information
leiyre authored Jul 3, 2024
1 parent 42f651d commit 4aa7387
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ $resizable-bar-width: $base-space;
justify-content: space-between;
flex-direction: column;
height: 100%;
min-height: 0;
width: 100%;
&.--h-resizing {
user-select: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ $resizable-bar-width: $base-space;
display: flex;
justify-content: space-between;
height: 100%;
min-height: 0;
width: 100%;
&.--v-resizing {
user-select: none;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<span>
<span class="bulk__container">
<LoadLine v-if="isSubmitting || isDraftSaving || isDiscarding" />
<VerticalResizable
class="wrapper"
Expand Down Expand Up @@ -500,9 +500,18 @@ export default {
display: flex;
align-items: center;
justify-content: center;
@include media("<desktop") {
height: 80vh;
}
}
}
.bulk {
&__container {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
&__records {
position: relative;
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export default {
display: flex;
align-items: center;
justify-content: center;
@include media("<desktop") {
height: 80vh;
}
}
}
.annotation-progress {
Expand Down
2 changes: 2 additions & 0 deletions argilla-frontend/layouts/AnnotationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ $gap-width: $base-space * 2;
.center-area {
grid-area: center;
min-width: 0;
display: flex;
flex-direction: column;
@include media("<desktop") {
min-height: 0;
}
Expand Down
17 changes: 2 additions & 15 deletions argilla-frontend/pages/dataset/_id/annotation-mode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
/>
</template>
<template v-slot:center>
<div class="center">
<PersistentStorageBanner />
<RecordFeedbackTaskAndQuestionnaire
:recordCriteria="recordCriteria"
/>
</div>
<PersistentStorageBanner />
<RecordFeedbackTaskAndQuestionnaire :recordCriteria="recordCriteria" />
</template>
</AnnotationPage>
</div>
Expand All @@ -42,12 +38,3 @@ export default {
},
};
</script>

<style scoped>
.center {
height: 100%;
max-height: 100%;
display: flex;
flex-direction: column;
}
</style>

0 comments on commit 4aa7387

Please sign in to comment.