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

細節欄位佔版面問題 #30

Open
slothservice opened this issue Feb 25, 2024 · 0 comments
Open

細節欄位佔版面問題 #30

slothservice opened this issue Feb 25, 2024 · 0 comments

Comments

@slothservice
Copy link
Contributor

@antoncoding#23 (review) 提到了連結在細節佔版面的問題

一個多的想法:我覺得可以把 additional like 做成一個新欄位,有的話就秀出來連結,而不要佔用context的欄位,這樣讀起來應該會更舒服一點

範例如下圖所示,連結佔了很大一部分空間

Screenshot 2024-02-25 at 6 19 59 PM

0 在 Terms.toml 中開一個新欄位

在 Terms.toml 中開一個新欄位可以解決這個問題。

但我們可能也有像 #25 一樣需要列出許多連結。

我也想提出一些其他的解決方式。

1 把所有「細節」部分壓縮成一個短句,讓使用者選擇是否展開

這個也算容易實作,也能讓長文縮短

Screenshot 2024-02-25 at 6 21 48 PM

2 轉換成網頁時,自動把連結變成註腳

在把 Terms.toml 轉換成網頁時。用 Regex 把 https:// 等網址樣式爬出,代換成 [1], [2], [3] 等註腳

3 轉換成網頁時,支援「細節」欄的 Markdown 功能

編輯者可以使用 Markdown 語法,決定是否壓縮網址,或把網址用何種字樣代換

我自己喜歡 1 + 3 的結合。同時有 Markdown 功能,並且有 1 的壓縮

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

No branches or pull requests

1 participant