Skip to content

Commit

Permalink
fix(labeler): height of 3D mesh preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshan Jossy committed Oct 8, 2021
1 parent b368d12 commit 585e192
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions finetuner/labeler/ui/js/components/mesh-match-card.vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const meshMatchCard = {
submitDoc: Function,
},
template: `
<div class="card image-card">
<div class="card mesh-card">
<div class="card-header">
<p class="fs-6 fw-light mb-2">Select all images similar to the image on right</p>
<model-viewer
v-bind:src="getContent(doc)"
v-on:click="toggleRelevance(match)"
class="img-thumbnail img-fluid my-2"
class="img-thumbnail img-fluid my-2 h-100"
alt="result mesh"
ar ar-modes="webxr scene-viewer quick-look"
environment-image="neutral"
Expand All @@ -34,7 +34,7 @@ const meshMatchCard = {
<model-viewer
v-bind:src="getContent(match)"
v-on:click="toggleRelevance(match)"
class="img-thumbnail img-fluid"
class="img-thumbnail img-fluid h-100"
alt="result mesh"
ar ar-modes="webxr scene-viewer quick-look"
environment-image="neutral"
Expand Down
8 changes: 8 additions & 0 deletions finetuner/labeler/ui/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,14 @@ accordion-button:focus {
padding: 0;
}

.mesh-card .card-header {
display: flex;
justify-content: center;
align-items: center;
padding: .5rem;
height: 10rem;
}

/* Swiper don't swipe */
.swiper-container {
width: 100%;
Expand Down

0 comments on commit 585e192

Please sign in to comment.