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

カテゴリーの説明をMarkdownで出力する。 #7829

Closed
machida opened this issue Jun 6, 2024 · 6 comments
Closed

カテゴリーの説明をMarkdownで出力する。 #7829

machida opened this issue Jun 6, 2024 · 6 comments
Assignees
Projects

Comments

@machida
Copy link
Member

machida commented Jun 6, 2024

プラクティス一覧ページの各カテゴリーの説明文。

貼り付けた画像_2024_06_06_12_30

これを Markdown で出力したい。

@machida machida created this issue from a note in 開発 (やる) Jun 6, 2024
@komagata komagata moved this from やる to いつかやる in 開発 Jun 6, 2024
@machida machida moved this from いつかやる to やる in 開発 Jun 6, 2024
@machida machida changed the title カテゴリーの説明をsimple_formatで出力する。 カテゴリーの説明をMarkdownで出力する。 Jun 6, 2024
@komagata komagata moved this from やる to 今のイテレーション in 開発 Jun 12, 2024
@motohiro-mm motohiro-mm moved this from 今のイテレーション to 作業中 in 開発 Jun 13, 2024
@motohiro-mm
Copy link
Contributor

motohiro-mm commented Jun 13, 2024

@machida
実装の方針について質問があります🙏

各カテゴリーの説明文をマークダウンで表示する際、
特定のマークダウンを使用すると以下動画のように編集リンクが反応しなくなりました。
(正確には編集リンク上部のほんのわずかな部分だけが反応します)
どのように対応すべきか方向性を教えていただきたいです。

2024-06-13.16.57.21.mov

該当するマークダウンは私が調べた限り以下3つです。

  • #見出し (#の個数は関係なし)
  • >引用
  • :::message ~ :::などのメッセージブロック
    メッセージブロックの場合は編集リンクのpenの表示もなくなります。
    (ボタンがあるであろう場所上部のリンクの反応は他と同様にあります)

対応として以下の2つを考えました。

  • 編集リンクが最上部にくるようにする
    app/javascript/stylesheets/application/blocks/practice/_categories.sass.categories-item__editz-indexを追加
.categories-item__edit
  float: right
  margin-left: .5rem
  +position(relative, top -.25rem)
  z-index: 100  /* 追加 */
  • 該当するマークダウンを使えないようにする

上記の対応ではなくそれ以外の対応が適切な場合はそれもご指示いただきたいです。
お手隙の際にご回答のほどよろしくお願いいたします🙇‍♀️

@machida
Copy link
Member Author

machida commented Jun 13, 2024

@motohiro-mm

連絡ありがとうございます!
リンクが反応しないのはCSSのせいですね。
これ、すぐに直せるので一旦そのままで大丈夫ですー。作業が一通り終わったら、僕にメンションとアサインをお願いします。僕の方で直しますー

@motohiro-mm
Copy link
Contributor

@machida
回答ありがとうございます!🙏
承知しました!

@motohiro-mm motohiro-mm moved this from 作業中 to レビュー中 in 開発 Jun 18, 2024
@motohiro-mm motohiro-mm moved this from レビュー中 to ステージング確認中 in 開発 Jun 24, 2024
@motohiro-mm motohiro-mm moved this from ステージング確認中 to リリース待ち in 開発 Jun 25, 2024
@motohiro-mm
Copy link
Contributor

@komagata
お疲れ様です。
お手隙の際に本番環境での確認をお願いいたします🙏

確認手順は以下です。

  1. メンター権限をもつユーザーでログイン
  2. https://bootcamp.fjord.jp/courses/1/practices#category-1 (プラクティス一覧)へアクセスし、ペンマークのeditリンクをクリック
  3. カテゴリーの説明をマークダウン形式で編集し、プレビューで見え方を確認して「更新する」をクリック
  4. カテゴリーの説明がプレビューで表示されていた通りに更新されているかを確認する

@motohiro-mm motohiro-mm moved this from リリース待ち to 本番確認中 in 開発 Jun 28, 2024
@komagata
Copy link
Member

@motohiro-mm 確認してOKでした~!

@motohiro-mm
Copy link
Contributor

確認ありがとうございました!🙏
OKとのことなので、こちらのissueはcloseします!

開発 automation moved this from 本番確認中 to 完成 Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
開発
  
完成
Status: 完成
Development

No branches or pull requests

3 participants