Skip to content

Commit

Permalink
feat(segmentGroups): adjust annotations tab GUI spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Oct 24, 2024
1 parent d84aa11 commit 4008dca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/components/SegmentGroupControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function openSaveDialog(id: string) {
</script>

<template>
<div class="my-2" v-if="currentImageID">
<div class="mt-2" v-if="currentImageID">
<div
class="text-grey text-subtitle-2 d-flex align-center justify-space-evenly mb-2"
>
Expand Down Expand Up @@ -203,11 +203,12 @@ function openSaveDialog(id: string) {
</v-list>
</v-menu>
</div>
<v-divider />
<v-divider class="my-4" />

<segment-group-opacity
v-if="currentSegmentGroupID"
:group-id="currentSegmentGroupID"
class="my-1"
/>
<v-radio-group
v-model="currentSegmentGroupID"
Expand Down Expand Up @@ -260,7 +261,7 @@ function openSaveDialog(id: string) {
</template>
</v-radio>
</v-radio-group>
<v-divider />
<v-divider class="my-4" />
</div>
<div v-else class="text-center text-caption">No selected image</div>
<segment-list
Expand Down
2 changes: 1 addition & 1 deletion src/components/SegmentGroupOpacity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const setOpacity = (opacity: number) => {

<template>
<v-slider
class="ma-4"
class="mx-4"
label="Segment Group Opacity"
min="0"
max="1"
Expand Down
5 changes: 3 additions & 2 deletions src/components/SegmentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function deleteEditingSegment() {
</script>

<template>
<v-btn @click.stop="toggleGlobalVisible">
<v-btn @click.stop="toggleGlobalVisible" class="my-1">
Toggle Segments
<slot name="append">
<v-icon v-if="allVisible" class="pl-2">mdi-eye</v-icon>
Expand All @@ -171,7 +171,7 @@ function deleteEditingSegment() {
</v-btn>

<v-slider
class="ma-4"
class="mx-4 my-1"
label="Segment Opacity"
min="0"
max="1"
Expand All @@ -190,6 +190,7 @@ function deleteEditingSegment() {
item-title="name"
create-label-text="New segment"
@create="addNewSegment"
class="my-4"
>
<template #item-prepend="{ item }">
<!-- dot container keeps overflowing name from squishing dot width -->
Expand Down

0 comments on commit 4008dca

Please sign in to comment.