Skip to content

Commit

Permalink
Merge pull request #39 from SmilyOrg/context-fixes
Browse files Browse the repository at this point in the history
Context menu fixes
  • Loading branch information
SmilyOrg committed Sep 18, 2022
2 parents fc899f6 + 1807813 commit 75ab857
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
:expanded="settingsExtraExpanded"
@click="settingsExtraExpanded = !settingsExtraExpanded"
></expand-button>
<template v-if="settingsExtraExpanded">
<div v-if="settingsExtraExpanded">
<ui-form-field>
<ui-checkbox v-model="settings.debug.overdraw"></ui-checkbox>
<label>Debug Overdraw</label>
Expand All @@ -97,7 +97,7 @@
<ui-checkbox v-model="settings.debug.thumbnails"></ui-checkbox>
<label>Debug Thumbnails</label>
</ui-form-field>
</template>
</div>
</div>
<ui-icon-button
icon="settings"
Expand Down
8 changes: 6 additions & 2 deletions ui/src/components/ExpandButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<ui-button
class="expand"
>
<ui-icon v-if="expanded">expand_less</ui-icon>
<ui-icon v-if="!expanded">expand_more</ui-icon>
<ui-icon class="icon" v-if="expanded">expand_less</ui-icon>
<ui-icon class="icon" v-if="!expanded">expand_more</ui-icon>
</ui-button>
</template>

Expand All @@ -20,4 +20,8 @@ export default {
height: 20px;
}
.icon {
pointer-events: none;
}
</style>
13 changes: 9 additions & 4 deletions ui/src/components/RegionMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
</ui-item>
</ui-nav>
<div v-if="expanded" class="thumbnails">
<ui-nav-item
<a
v-for="thumb in region.data?.thumbnails"
:key="thumb.name"
class="thumbnail"
:href="getThumbnailUrl(region.data.id, thumb.name, thumb.filename)"
target="_blank"
>
{{ thumb.width }}
</ui-nav-item>
</a>
</div>
<expand-button
:expanded="expanded"
Expand Down Expand Up @@ -140,8 +140,13 @@ export default {
.thumbnail {
font-size: 0.8em;
padding: 6px;
height: 24px;
padding: 10px 6px;
text-decoration: none;
color: var(--mdc-theme-text-primary-on-background);
}
.thumbnail:hover {
background: rgb(241, 241, 241);
}
.filename {
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/TileViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export default {
this.v = this.map.getView();
this.setInteractive(this.interactive);
this.setView(this.view || this.latestView);
this.$emit("viewer", this.map);
},
Expand Down

0 comments on commit 75ab857

Please sign in to comment.