-
Notifications
You must be signed in to change notification settings - Fork 219
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
Imprv/gw5589 bot type ui #3603
Imprv/gw5589 bot type ui #3603
Conversation
…ze smaller than h2
/* | ||
Slack Integration | ||
*/ | ||
.selecting-bot-type { | ||
.bot-type-disc-easy { | ||
color: #33d541; | ||
} | ||
.bot-type-disc-normal { | ||
color: #e6a63c; | ||
} | ||
.bot-type-disc-difficult { | ||
color: #ff5757; | ||
} | ||
.bot-type-disc-possible { | ||
color: $info; | ||
} | ||
.bot-type-disc-impossible { | ||
color: $gray-500; | ||
} | ||
} |
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.
ここでのみ使用する色は直書きでカラーコード を書いています。
src/client/styles/scss/_admin.scss
Outdated
.selecting-bot-type { | ||
.btn-link { | ||
font-size: 1rem; | ||
cursor: pointer; | ||
} | ||
.supplementary-desc { | ||
font-size: 1rem; | ||
} | ||
.badge-info { | ||
font-size: 0.6rem; | ||
} |
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.
src/client/styles/scss/_admin.scss
Outdated
@@ -84,6 +84,7 @@ | |||
} | |||
|
|||
.admin-bot-card { | |||
min-width: 280px; |
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.
min-widthを指定することで、文字のはみ出しを防いでいます。
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.
コメントしました。確認お願いします
@@ -103,6 +103,16 @@ const SlackIntegration = (props) => { | |||
break; | |||
} | |||
|
|||
const showBotTypeLebel = (level) => { |
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.
Level ?
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.
修正しました...!
<i className={`fa fa-external-link btn-link ${currentBotType === 'official-bot' && 'bg-primary text-light'}`} aria-hidden="true"></i> | ||
</h3> | ||
</div> | ||
<div className="card-body p-4"> |
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.
https://zenn.dev/seya/articles/f642acf1c47358
三角は意外と簡単に実装できるかも?
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.
ありがとうございます!
ただ、武井さんと話し合った結果、三角いらないだろうという話になりました。。。
<h5 className="card-title">Custom Bot (With Proxy)</h5> | ||
<p className="card-text">This is a wider card with supporting text below as a natural lead-in to additional content.</p> | ||
<div | ||
className={`card admin-bot-card mx-3 rounded shadow ${currentBotType === 'custom-bot-with-proxy' && 'border-primary'}`} |
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.
なるほど、修正しました。
<span className="supplementary-desc mr-2"> | ||
{t('admin:slack_integration.selecting_bot_types.with_proxy')} | ||
</span> | ||
<i className={`fa fa-external-link btn-link ${currentBotType === 'custom-bot-with-proxy' && 'bg-primary text-light'}`} aria-hidden="true"></i> |
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.
これって Docs へのリンクですよね。
忘れてしまいそうなので、後ほど追加する予定であれば TODO コメントをしておいて欲しいですね
src/client/styles/scss/_admin.scss
Outdated
.selecting-bot-type { | ||
.btn-link { | ||
font-size: 1rem; | ||
cursor: pointer; |
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.
btn-link はもともと cursor: pointer;
が設定されていそうです
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.
指摘ありがとうございます。削除しました。
src/client/styles/scss/_admin.scss
Outdated
font-size: 0.6rem; | ||
} | ||
.border-primary { | ||
border-width: 2px; |
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.
その結果微妙な白いスペースが... 😭
上記のスペースの原因はこれかも?
src/client/styles/scss/_admin.scss
Outdated
.admin-bot-card { | ||
min-width: 280px; | ||
cursor: pointer; | ||
border-radius: 0.5rem !important; | ||
} |
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.
!important
つけないと反映されないので追加しました。
{/* TODO: add an appropriate link by GW-5614 */} | ||
<i className="fa fa-external-link" aria-hidden="true"></i> |
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.
linkの指定は後続タスクで着手します
TODO commentを記載しました。
- GW-5614 Docsに飛ぶリンクを指定する
src/client/styles/scss/_admin.scss
Outdated
} | ||
.admin-bot-card { | ||
min-width: 280px; | ||
cursor: pointer; |
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.
twbs/bootstrap#23709
role='button'
使ってねって書いてますね
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.
修正しました。
タスク
PR分けてレビュー依頼出そうと思っていたのですが、同時にやってしまいました。
完全に再現するとなると大変なので、微調整やコンポーネント化(共通化)は後続タスクで着手します。
表示
日本語
ダークモード
後続タスク