MathJax equations that are too wide on mobile should become individually scrollable

オープン
#426 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
css
領域
frontend

調査の方向性

まず、WebインターフェースでMathJaxのレンダリングスタイルと .mathjax.code-block-wrapper 要素を見つけます。モバイルサイズのビューポートで長い数式のケースを再現し、その後、ページ周辺のコンテンツの可読性を保ったまま、水平方向の移動が数式内に限定されていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Is your feature request related to a problem? Please describe.
A longer equation like

$$
\phi_n(\kappa) =
\frac{1}{4\pi^2\kappa^2} \int_0^\infty
\frac{\sin(\kappa R)}{\kappa R}
\frac{\partial}{\partial R}
\left [ R^2\frac{\partial D_n(R)}
{\partial R} \right ] dR
$$

doesn't fit on the screen on a mobile device, resulting in it being cut off:

Image

Describe the solution you'd like
The cut-off is of course unavoidable, but it would be nice if it was possible to horizontally scroll on the equation by tapping and moving it.

Injecting this CSS with the browser inspection tool seems to work, for example:

.mathjax.code-block-wrapper {
    overflow-x: scroll;
}

Describe alternatives you've considered
You can currently scroll horizontally, but then the whole page moves:

Image

Then you can't read the surrounding context anymore.

主要言語
言語のデータがありません
スター
40
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hackmdio/hackmd-io-issues のほかの issue

hackmdio/hackmd-io-issues の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。