Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugma committed Jan 4, 2025
1 parent 8d05380 commit acd6832
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 37 deletions.
4 changes: 2 additions & 2 deletions src/components/Main/MainView/MessageElement/StampElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</transition>
<spin-number :value="stamp.sum" :class="$style.count" />
</div>
<stamp-scaled-element
<stamp-scaled-element
:class="$style.scaleReaction"
:show="isHovered && !isDetailShown"
:stamp="stamp"
/>
/>
</template>

<script lang="ts" setup>
Expand Down
63 changes: 28 additions & 35 deletions src/components/Main/MainView/MessageElement/StampScaledElement.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
<template>
<div
v-show="show"
:class="$style.scaleReaction"
>
<div v-show="show" :class="$style.scaleReaction">
<transition name="scale-reaction">
<!-- sizeを46より大きくすると見切れる -->
<a-stamp
:key="stamp.id"
:stamp-id="stamp.id"
:size="46"
:class="$style.stamp"
without-title
/>
<a-stamp
:key="stamp.id"
:stamp-id="stamp.id"
:size="46"
:class="$style.stamp"
without-title
/>
</transition>
<stamp-detail-element
:class="$style.detail"
:stamp="stamp"
/>
<stamp-detail-element :class="$style.detail" :stamp="stamp" />
</div>
</template>
<script lang="ts" setup>
import AStamp from '/@/components/UI/AStamp.vue'
import type { MessageStampById } from '/@/lib/messageStampList'
import StampDetailElement from './StampDetailElement.vue'
</template>

<script lang="ts" setup>
import AStamp from '/@/components/UI/AStamp.vue'
import type { MessageStampById } from '/@/lib/messageStampList'
import StampDetailElement from './StampDetailElement.vue'
const props = defineProps<{
stamp: MessageStampById
Expand All @@ -33,26 +27,26 @@ const props = defineProps<{

<style lang="scss" module>
.scaleReaction {
@include color-ui-tertiary;
@include background-primary;
display: flex;
border-radius: 4px;
contain: none;
flex-wrap: wrap;
border: solid 2px $theme-ui-tertiary-default;
@include color-ui-tertiary;
@include background-primary;
display: flex;
border-radius: 4px;
contain: none;
flex-wrap: wrap;
border: solid 2px $theme-ui-tertiary-default;
}
.stamp {
margin: {
right: 0.2rem;
bottom: 0.2rem;
}
display: flex;
margin: {
right: 0.2rem;
bottom: 0.2rem;
}
display: flex;
}
.detail {
color: var(--specific-count-text);
@include color-ui-primary;
max-width : 500px;
max-width: 500px;
min-width: 0;
overflow: hidden;
overflow: clip;
Expand All @@ -62,4 +56,3 @@ const props = defineProps<{
}
}
</style>

0 comments on commit acd6832

Please sign in to comment.