-
Notifications
You must be signed in to change notification settings - Fork 1
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
カードの新規作成 #48
カードの新規作成 #48
Conversation
デザインに合わせたカードのみ作成しています。 以下の残りタスク |
これに関しては別のタスクで切り出してやるので一旦考えなくて大丈夫かなと。
Fragment( |
ローディング中はスケルトンを使うと良いかなと思いました。 |
APIからstateとlabel_urlを取得して、card.tsxで任意(open or closed)のアイコンの設定とラベル表示させたいけど、分からない |
変更内容カードの作成 確認方法npm run devで実行 スケルトンが表示されること |
# Conflicts: # src/swr/client/issues.ts
エラーの際非表示に
src/app/_components/Milestones.tsx
Outdated
`; | ||
|
||
const Milestones = () => { | ||
const { data } = useMilestones(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useMilestones()
でエラーが返却された場合どうなりますか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
考慮していなかったので、エラーが起きた際に非表示になるようにします。
padding-bottom: 300px; | ||
background-color: rgba(255, 255, 255, 0.6); | ||
backdrop-filter: blur(10px); | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
widthは%とmax-widthを併記すると画面サイズが変わってもデザインが崩れにくくて良いので以下のような感じにしてみて欲しいです。
const StyledContainer = styled('div')`
width: 100%;
max-width: 645px;
min-height: 300px;
あくまで例なのでdevツールとかで画面サイズ比とかいじくり回してデザイン崩れないようによしなにやってください。
他のコンポーネントも同じ容量で出来るだけstyledcomponentを使うようにしてみてください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSSだと適用されなかったのでBoxコンポーネントでラッパーしたら適用されたことを思い出しました。
代替手段を探してみます
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
記述方法を間違えてただけでしたので解決しました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boxコンポーネントの廃止
Ticket
変更内容
カードの新規作成
確認方法
npm run devで実行