Skip to content

Commit

Permalink
feat(LabelmapControls): better styling
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Nov 6, 2023
1 parent 2f7f8a4 commit 4a34db6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/LabelmapControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function createLabelmap() {
</script>

<template>
<div class="labelmap-list mb-2" v-if="currentImageID">
<div class="mb-2" v-if="currentImageID">
<v-btn
variant="tonal"
color="secondary"
Expand All @@ -100,7 +100,14 @@ function createLabelmap() {
>
<v-icon class="mr-1">mdi-plus</v-icon> New Labelmap
</v-btn>
<v-radio-group v-model="selectedLabelmapID">
<div class="text-grey text-subtitle-2">Segment Groups</div>
<v-divider />
<v-radio-group
v-model="selectedLabelmapID"
hide-details
density="comfortable"
class="my-1 segment-group-list"
>
<v-radio
v-for="labelmap in currentLabelmaps"
:key="labelmap.id"
Expand Down Expand Up @@ -129,6 +136,7 @@ function createLabelmap() {
</template>
</v-radio>
</v-radio-group>
<v-divider />
</div>
<div v-else class="text-center text-caption">No selected image</div>
<segment-list v-if="selectedLabelmapID" :labelmap-id="selectedLabelmapID" />
Expand All @@ -153,7 +161,7 @@ function createLabelmap() {
</template>

<style>
.labelmap-list {
.segment-group-list {
max-height: 240px;
overflow-y: auto;
}
Expand Down

0 comments on commit 4a34db6

Please sign in to comment.