Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/components/Modal/UserModal/UserModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<user-icon
v-if="!isMobile"
:user-id="id"
prevent-modal
:prevent-modal="false"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest

prevent-modal のデフォルト値は false なので、この行を取り除くだけでよいと思います.

Suggested change
:prevent-modal="false"

:class="$style.icon"
:style="styles.icon"
/>
Expand Down Expand Up @@ -112,4 +112,9 @@ const { userDetail } = useUserDetail(props)
margin: auto;
border: 6px solid $theme-background-secondary-border;
}

.icon[role='button'] {
cursor: default;
}

</style>
6 changes: 2 additions & 4 deletions src/components/UI/UserIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ const props = withDefaults(
size: 36,
indicatorSize: 10,
preventModal: false,
hasNotification: false,
isInactive: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask

isInactive のデフォルト値が消えているのはどうしてですか?

hasNotification: false
}
)

Expand Down Expand Up @@ -78,8 +77,7 @@ const styles = reactive({
height: `${props.size}px`,
backgroundImage: userIconFileId.value
? `url(${buildUserIconPath(userIconFileId.value)})`
: undefined,
pointerEvents: props.preventModal ? ('none' as const) : undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ask

ここの分岐を取り除く代わりに以下の部分で role を用いた判定に変更しているのはどうしてですか?

https://github.com/traPtitech/traQ_S-UI/pull/4748/files#diff-4485eaaa605dc00a1edbf840841640a00c5ce1b405a26b25280374eea8b173f3R115-R119

: undefined
}))
})

Expand Down
Loading