Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

フィールド上のメッセージのUI #33

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

ikura-hamu
Copy link
Member

  • ✨ メッセージアイコンを準備
  • ✨ メッセージコンポーネント
  • 💄 tailwindの色をpixi用にtypescriptに持ってくる

@ikura-hamu ikura-hamu requested a review from Copilot January 22, 2025 14:18

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

client/src/pixi/theme.ts:21

  • Ensure that the keys in the themeColors object are correctly mapped from the Tailwind config to avoid potential typos.
backgroundPrimary: colors["background-primary"],
@ikura-hamu ikura-hamu linked an issue Jan 22, 2025 that may be closed by this pull request
Copy link
Contributor

@SSlime-s SSlime-s left a comment

Choose a reason for hiding this comment

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

ザッとみて気になったとこだけ

Comment on lines +56 to +65
useEffect(() => {
if (!showMessage) return;
if (textRef.current) {
const { width, height } = textRef.current;
setBubbleSize({
width: width + 20,
height: height + 20,
});
}
}, [showMessage]);
Copy link
Contributor

Choose a reason for hiding this comment

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

余裕なかったらこのままでいいけど、setShowMessage をラップして、setShowMessage(true) するときにsetBubbleSize するのがよさそう

Copy link
Member Author

Choose a reason for hiding this comment

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

これshowMessage=falseのときtextRef.currentがnullなのでできなさそうです

Copy link
Contributor

Choose a reason for hiding this comment

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

たしかに

@ikura-hamu ikura-hamu merged commit 77cb939 into main Jan 22, 2025
5 checks passed
@ikura-hamu ikura-hamu deleted the client/feat/field_message branch January 22, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

client: メッセージをフィールドに表示
2 participants