Skip to content

Conversation

@kg0816
Copy link
Contributor

@kg0816 kg0816 commented Nov 4, 2025

・table以外の要素の移設(ボードサイズ、世代表示、リセット、ランダムボタン)
・tableの中央配置
・その他軽微な調整(マスの大きさ、iframe要素の大きさ等)

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 4, 2025

Deploying life-code with  Cloudflare Pages  Cloudflare Pages

Latest commit: 371cc24
Status: ✅  Deploy successful!
Preview URL: https://95469795.life-code.pages.dev
Branch Preview URL: https://uidesign-v3.life-code.pages.dev

View logs

window.parent.postMessage(
{
type: "generation_change",
data: generationFigure,
Copy link
Contributor

Choose a reason for hiding this comment

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

これしようとすると大変になってくるので、外側で世代とかの情報を管理して、「世代交代」だけを iframe に渡すのがいいんじゃないかな。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

intervalの間隔は編集可能にしておきたいのでその辺のコードは外に置きたくないってのがあります。
この先似たようなのが増えるわけではない(はず)なので複雑さもそこまでひどくならないとは思いますが...

Copy link
Contributor

Choose a reason for hiding this comment

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

interval ってこっちで編集機能を用意しておくんじゃなかったっけ?

それならそれでもいいと思う


on.sizechange = (newSizenum) => {
const newSize = parseInt(newSizenum, 10);
if (isNaN(newSize) || newSize < BOARD_MIN || BOARD_MAX < newSize) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ここのバリデーション (10以上100以下である) も、外側に移すのが良さそう

Copy link
Contributor Author

Choose a reason for hiding this comment

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

こちらもですね

@aster-void
Copy link
Contributor

他の作業と範囲被ってるのでいったんマージします!

@aster-void aster-void merged commit 4856d0e into main Nov 7, 2025
4 checks passed
@aster-void aster-void deleted the UIdesign_v3 branch November 7, 2025 14:16
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.

4 participants