Skip to content

Commit

Permalink
fix style of replace modal
Browse files Browse the repository at this point in the history
  • Loading branch information
huww98 committed Dec 31, 2023
1 parent a94d824 commit 35431e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/RecipeSelect.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<template>
<span @click="openModal = true" class="icon-select" ref="handler" tabindex="0" role="listbox">
<BuildingIcon v-if="props.recipeId !== null" :icon-id="recipeIconId(props.recipeId)" :alt="recipeName(props.recipeId)"/>
<span class="icon icon-placeholder" v-else></span>
<span class="icon" v-else>
<div class="icon-placeholder"></div>
</span>
</span>
<Modal :open="openModal" @update:open="o => { if (!o) selected(null) }">
<div>
Expand Down Expand Up @@ -61,6 +63,8 @@ const selected = (i: Recipe | null) => {
<style lang="scss">
.icon-select {
cursor: pointer;
display: inline-block;
.icon {
display: block;
}
Expand All @@ -69,6 +73,7 @@ const selected = (i: Recipe | null) => {
.icon-placeholder {
border: 1px dashed currentColor;
background: #FFF4;
padding-top: 100%;
}
.icon-grid {
Expand Down

0 comments on commit 35431e3

Please sign in to comment.