Skip to content

Commit

Permalink
表示ちょっと直した
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Nov 11, 2023
1 parent 0e6030d commit 7e45092
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
17 changes: 13 additions & 4 deletions src/components/Modal/Common/ModalHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
<modal-return-button v-if="returnButton" :class="$style.returnButton" />
<div :class="$style.content">
<h1 :class="$style.title">
<a-icon v-if="iconName" :class="$style.icon" :name="iconName" :mdi="iconMdi" />{{
title
}}
<a-icon
v-if="iconName"
:class="$style.icon"
:name="iconName"
:mdi="iconMdi"
/>{{ title }}
</h1>
<h2 :class="$style.subtitle"><slot name="subtitle" /></h2>
<h2 :class="$style.subtitle" :data-has-icon="$boolAttr(!iconName)">
<slot name="subtitle" />
</h2>
</div>
</div>
</template>
Expand Down Expand Up @@ -69,6 +74,10 @@ withDefaults(
weight: 500;
size: 0.875rem;
}
&[data-has-icon] {
padding-left: 0;
}
}
.icon {
margin-right: 16px;
Expand Down
1 change: 1 addition & 0 deletions src/components/Modal/StampCreateModal/StampCreateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const { selectImage } = useFileSelect({ accept: acceptImageType }, files => {
gap: 16px;
}
.leftContainer {
min-width: 136px;
width: 136px;
height: 136px;
margin: 8px 0;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Modal/StampEditModal/StampEditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ const { selectImage } = useFileSelect({ accept: acceptImageType }, files => {
gap: 16px;
}
.leftContainer {
min-width: 136px;
width: 136px;
height: 136px;
margin: 8px 0;
Expand All @@ -204,8 +205,8 @@ const { selectImage } = useFileSelect({ accept: acceptImageType }, files => {
.note {
@include color-ui-secondary;
margin-left: 12px;
margin-bottom: 12px;
font-size: 12px;
}
.buttonContainer {
display: flex;
Expand Down
17 changes: 9 additions & 8 deletions src/components/Settings/StampTab/StampItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
@{{ stamp.creatorId }}
</p>
</div>
<icon-button
icon-name="dots-horizontal"
icon-mdi
:class="$style.dotsButon"
@click="onDotsClick"
/>
<button :class="$style.dotsButton" @click="onDotsClick">
<a-icon name="dots-horizontal" mdi />
</button>
</div>
<stamp-context-menu
v-if="contextMenuPosition"
Expand All @@ -31,10 +28,10 @@
<script lang="ts" setup>
import type { Stamp } from '@traptitech/traq'
import { computed } from 'vue'
import IconButton from '/@/components/UI/IconButton.vue'
import { buildFilePath } from '/@/lib/apis'
import useContextMenu from '/@/composables/useContextMenu'
import StampContextMenu from './StampContextMenu.vue'
import AIcon from '/@/components/UI/AIcon.vue'
const props = withDefaults(
defineProps<{
Expand Down Expand Up @@ -88,9 +85,13 @@ const onDotsClick = (e: MouseEvent) => {
text-overflow: ellipsis;
}
.dotsButon {
.dotsButton {
@include color-ui-tertiary;
padding: 4px;
border-radius: 4px;
cursor: pointer;
display: flex;
&:hover {
@include color-ui-secondary;
@include background-secondary;
Expand Down

0 comments on commit 7e45092

Please sign in to comment.