@14ch/svelte-md-outliner 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/assets/styles/editor.css +11 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.0.4] - 2026-09-03
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Tall images are no longer shrunk to a thumbnail. A phone screenshot
|
|
13
|
+
(1179x2556) came out 148px wide because the height cap was 320px regardless of
|
|
14
|
+
the window. The cap now follows the window height, so the same screenshot
|
|
15
|
+
comes out 248x538 and a desktop screenshot fills the column.
|
|
16
|
+
|
|
8
17
|
## [0.0.3] - 2026-09-02
|
|
9
18
|
|
|
10
19
|
### Added
|
|
@@ -134,10 +134,18 @@
|
|
|
134
134
|
--markdown-editor-front-matter-padding: 0.4em 0.8em;
|
|
135
135
|
--markdown-editor-mermaid-min-height: 2.5em;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
138
|
-
*
|
|
137
|
+
* 画像の高さの上限。**画像は幅と高さの 2 つで抑える**(横は `max-width: 100%`)。
|
|
138
|
+
*
|
|
139
|
+
* **これは面積を揃えない。** 占める面積は縦横比で決まり、実測で 2.3 倍ひらく
|
|
140
|
+
* (本文 700px・画面 896px で、パノラマ 3:1 が 163k px²、デスクトップ 16:10 が
|
|
141
|
+
* 306k px²、スマホのスクリーンショットが 133k px²)。**承知のうえでこの形を採る**——
|
|
142
|
+
* 面積を揃えるには自然な寸法を読んで幅を計算するほかなく、CSS には縦横比で規則を
|
|
143
|
+
* 変える手段がない(→ `image-insertion` の research)。
|
|
144
|
+
*
|
|
145
|
+
* 画面の高さで持つ(`em` ではない)。`em` だと文字を大きくしたぶん上限も伸び、
|
|
146
|
+
* 画面との関係が変わってしまう。刻みは `--markdown-editor-menu-max-height` に揃える。
|
|
139
147
|
*/
|
|
140
|
-
--markdown-editor-image-max-height:
|
|
148
|
+
--markdown-editor-image-max-height: 60vh;
|
|
141
149
|
}
|
|
142
150
|
|
|
143
151
|
/**
|
|
@@ -1077,8 +1085,6 @@
|
|
|
1077
1085
|
display: block;
|
|
1078
1086
|
max-width: 100%;
|
|
1079
1087
|
max-height: var(--markdown-editor-image-max-height);
|
|
1080
|
-
/* 上限で片方が縮んだときも、縦横の比を保つ */
|
|
1081
|
-
object-fit: contain;
|
|
1082
1088
|
}
|
|
1083
1089
|
|
|
1084
1090
|
/* 読み込めなかった画像の枠(実行環境が出す壊れた画像の印)は出さない。一行で伝える */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@14ch/svelte-md-outliner",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "An outliner-style Markdown editor for Svelte 5. Headings form a real section tree you can fold, focus, and re-nest from the keyboard.",
|