gitoria

components

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1c41293e1c41293eMediaPlayer: back / forward 10 s as replay / forward 10 icons (circular arrow with a 10), the play button keeps its surface background on audio and video, the media route's range end is a letmre1c41293e/components/media-player/media-player.hl

18.2 KB

  1. // media-player.hl — THE MEDIA PLAYER, all Hybriel (no JavaScript file): audio and video in one phone-first player.
  2. // `MediaPlayer { src = "/media/x.mp4" kind = "video" title = "The clip" artist = "Someone" }` — `kind = "audio"` shows a
  3. // cover image (`cover`) with the title and artist instead of the video area. The browser's own media element plays (no
  4. // `controls`: this component draws the controls, sized for a thumb): a seek bar you drag with a finger (the played part in
  5. // the accent colour, the buffered part as a lighter bar, a 44 px tall touch area with a thin visible bar), Back 10 s,
  6. // play/pause (the largest button), Forward 10 s, mute, the current time / total time, the playback speed (1 / 1.25 / 1.5 / 2)
  7. // and, on video, fullscreen. THE QUEUE is the host's list: `queue = [{ src, title, dur }]` renders under the player, the
  8. // item that plays is marked with the accent colour only, and a tap calls the host's function with the record's `src`
  9. // (hybriel#87: a child talks upward through a function its host gives it) — the host hands a new `src` back, the player
  10. // loads and plays it; when an item ends, the next one is picked the same way. USE ONE PER PAGE (a composed component's
  11. // members are the page's state). Keyboard: the media element takes the focus (a click on it), Space plays / pauses,
  12. // ArrowLeft / ArrowRight jump 10 s. The handlers read the elements' own state, never the members.
  13. import Icon from '../icons/icons.hl'
  14. String src = ''
  15. String kind = 'video'
  16. String title = ''
  17. String artist = ''
  18. String cover = ''
  19. String playLabel = 'Play'
  20. String pauseLabel = 'Pause'
  21. String backLabel = 'Back 10 seconds'
  22. String forwardLabel = 'Forward 10 seconds'
  23. String muteLabel = 'Mute'
  24. String unmuteLabel = 'Unmute'
  25. String speedLabel = 'Playback speed'
  26. String fullscreenLabel = 'Fullscreen'
  27. String queueLabel = 'Queue'
  28. Hybrid queue = []
  29. onPlay = null
  30. Number jump = 10
  31. // the state the media events write (the framework repaints the sites that read them)
  32. String playing = 'false'
  33. String muted = 'false'
  34. String timeText = '0:00'
  35. String totalText = '0:00'
  36. String playedPct = '0'
  37. String bufferedPct = '0'
  38. String speedText = '1'
  39. String dragging = 'false'
  40. String bufferedStyle = 'width:0%'
  41. String playedStyle = 'width:0%'
  42. String thumbStyle = 'left:0%'
  43. String autoPlay = 'false'
  44. String playClass = 'mp-play'
  45. String playLabelNow = playLabel
  46. String playIsNow = playLabel
  47. String muteClass = 'mp-mute'
  48. String muteLabelNow = muteLabel
  49. // "1:23" — whole seconds are enough for a time line
  50. clockText(t) {
  51. if (t == null || t < 0 || t != t) { return '0:00' }
  52. s = t - t % 1
  53. m = (s - s % 60) / 60
  54. sec = s - m * 60
  55. return m + ':' + (sec < 10 ? '0' : '') + sec
  56. }
  57. // the player's own element (the video or audio tag of this component)
  58. mediaOf(node) { return node.closest('media-player').querySelector('video, audio') }
  59. // the seek bar of this component
  60. barOf(node) { return node.closest('media-player').querySelector('mp-seek') }
  61. // the media element's buffered end as a percent of its duration
  62. bufferedPctOf(v) {
  63. if (v == null || v.buffered.length == 0 || v.duration == 0 || v.duration == null) { return '0' }
  64. return '' + ((v.buffered.end(v.buffered.length - 1) / v.duration) * 100 - (v.buffered.end(v.buffered.length - 1) / v.duration) * 100 % 1)
  65. }
  66. Style {
  67. 'media-player' { display = 'block' font = 'inherit' color = 'var(--color-text, #000)' background = 'var(--color-background, #fff)' }
  68. 'media-player video' { display = 'block' width = '100%' aspectRatio = '16 / 9' height = 'auto' objectFit = 'contain' background = 'var(--color-background-sunken, #555)' borderRadius = 'var(--radius-large, 10px)' cursor = 'pointer' }
  69. 'media-player audio' { display = 'none' }
  70. // the mount tick (the code editor's trick): an endless 100 ms animation fires animationiteration once
  71. // the page is live; the handler turns it off again. The AUDIO element itself is display:none (a CSS
  72. // animation never runs there), so the cover image carries the tick for it.
  73. 'media-player .mp-media, media-player .mp-cover img' { animation = 'media-player-mount 100ms linear infinite' }
  74. '@keyframes media-player-mount' { 'from' { opacity = '.999' } to { opacity = '1' } }
  75. // the cover of an audio item, with the title and the artist
  76. 'media-player .mp-cover' { display = 'flex' alignItems = 'center' gap = '.8rem' margin = '0 0 .4rem' }
  77. 'media-player .mp-cover img' { flex = 'none' width = '5rem' height = '5rem' objectFit = 'cover' borderRadius = 'var(--radius-large, 10px)' background = 'var(--color-surface, #ddd)' }
  78. 'media-player .mp-cover h2' { margin = '0' fontSize = '1.15rem' lineHeight = '1.3' color = 'var(--color-text-strong, #000)' overflowWrap = 'anywhere' }
  79. 'media-player .mp-cover p' { margin = '.15rem 0 0' color = 'var(--color-text-muted, #555)' overflowWrap = 'anywhere' }
  80. // THE SEEK BAR: a 44 px touch area, the visible bar thin in the middle (a fat bar is decoration); the played part is the
  81. // accent, the buffered part a lighter grey over the pale track. No border anywhere.
  82. 'media-player mp-seek' { display = 'block' position = 'relative' height = '2.75rem' margin = '.15rem 0' touchAction = 'none' cursor = 'pointer' }
  83. 'media-player mp-seek .mp-track' { position = 'absolute' left = '.3125rem' right = '.3125rem' top = '1.1875rem' height = '.375rem' borderRadius = 'var(--radius-small, 5px)' background = 'var(--color-surface, #ddd)' overflow = 'hidden' }
  84. 'media-player mp-seek .mp-buffered' { position = 'absolute' left = '0' top = '0' bottom = '0' width = '0' background = 'var(--color-grey, #999)' opacity = '.55' }
  85. 'media-player mp-seek .mp-played' { position = 'absolute' left = '0' top = '0' bottom = '0' width = '0' background = 'var(--color-accent, #000)' }
  86. 'media-player mp-seek .mp-thumb' { position = 'absolute' top = '1.0625rem' width = '.625rem' height = '.625rem' borderRadius = '50%' background = 'var(--color-accent, #000)' transform = 'translateX(-50%)' left = '0' marginLeft = '.3125rem' }
  87. // the buttons: 44 px (the play / pause one larger); only the icon buttons on the row, the times between them
  88. 'media-player mp-buttons' { display = 'flex' alignItems = 'center' flexWrap = 'wrap' gap = '.2rem' }
  89. 'media-player mp-buttons button' { display = 'inline-flex' alignItems = 'center' justifyContent = 'center' minWidth = '2.75rem' minHeight = '2.75rem' padding = '0' font = 'inherit' fontWeight = '600' color = 'var(--color-text, #000)' background = 'transparent' border = '0' borderRadius = 'var(--radius-small, 5px)' cursor = 'pointer' }
  90. 'media-player mp-buttons button:hover' { background = 'var(--color-surface, #f2f2f2)' }
  91. 'media-player mp-buttons button:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '1px' }
  92. 'media-player mp-buttons button.mp-play' { background = 'var(--color-surface, #f2f2f2)' minWidth = '3.25rem' minHeight = '3.25rem' width = '3.25rem' height = '3.25rem' }
  93. 'media-player mp-buttons .mp-times' { display = 'inline-flex' alignItems = 'center' minHeight = '2.75rem' padding = '0' flex = '0 1 auto' flexWrap = 'nowrap' fontVariantNumeric = 'tabular-nums' fontSize = '.85rem' whiteSpace = 'nowrap' color = 'var(--color-text-muted, #555)' }
  94. // the two icons of a toggle button: one shows, the other waits (an `if` would re-create the DOM);
  95. // the wrapping spans are inline-flex with no leading, or the icon rides the text baseline (3 px high)
  96. 'media-player mp-buttons .i-play, media-player mp-buttons .i-pause, media-player mp-buttons .i-on, media-player mp-buttons .i-off' { display = 'inline-flex' flex = 'none' lineHeight = '0' }
  97. 'media-player .mp-play .i-pause' { display = 'none' }
  98. 'media-player .mp-play.is-playing .i-play' { display = 'none' }
  99. 'media-player .mp-play.is-playing .i-pause' { display = 'inline-flex' }
  100. 'media-player .mp-mute .i-off' { display = 'none' }
  101. 'media-player .mp-mute.is-muted .i-on' { display = 'none' }
  102. 'media-player .mp-mute.is-muted .i-off' { display = 'inline-flex' }
  103. // THE QUEUE under the player: title and length per row, dense (a 44 px tap area with thin rows, not loose ones)
  104. 'media-player .mp-queue-title' { margin = '1rem 0 .2rem' fontSize = '1rem' color = 'var(--color-text-strong, #000)' }
  105. 'media-player ol.mp-queue' { display = 'grid' gap = '.1rem' margin = '0' padding = '0' listStyle = 'none' }
  106. 'media-player ol.mp-queue li' { margin = '0' }
  107. 'media-player ol.mp-queue button' { display = 'flex' alignItems = 'center' gap = '.5rem' width = '100%' minHeight = '2.75rem' padding = '.3rem .55rem' font = 'inherit' textAlign = 'left' color = 'var(--color-text, #000)' background = 'transparent' border = '0' borderRadius = 'var(--radius-small, 5px)' cursor = 'pointer' }
  108. 'media-player ol.mp-queue button:hover' { background = 'var(--color-surface, #f2f2f2)' }
  109. 'media-player ol.mp-queue button:focus-visible' { outline = '2px solid var(--color-accent, #555)' outlineOffset = '1px' }
  110. 'media-player ol.mp-queue li.current button' { color = 'var(--color-accent, #000)' background = 'var(--color-surface, #f2f2f2)' }
  111. 'media-player ol.mp-queue .mp-q-title' { flex = '1' minWidth = '0' overflowWrap = 'anywhere' textAlign = 'left' }
  112. 'media-player ol.mp-queue .mp-q-dur' { flex = 'none' fontSize = '.85rem' color = 'var(--color-text-muted, #555)' }
  113. 'media-player ol.mp-queue li.current .mp-q-dur' { color = 'inherit' }
  114. }
  115. View {
  116. mediaPlayer {
  117. if (isVideo) { video { src = src preload = "metadata" playsinline = "playsinline" tabindex = "0" title = title class = "mp-media"
  118. on animationiteration(e) { emit mpMount(e) } on click(e) { emit mpToggle(e) } on play(e) { emit mpStarted(e) } on pause(e) { emit mpPaused(e) } on ended(e) { emit mpEnded(e) } on timeupdate(e) { emit mpTime(e) } on durationchange(e) { emit mpTotal(e) } on loadedmetadata(e) { emit mpTotal(e) } on progress(e) { emit mpBuffered(e) } on volumechange(e) { emit mpVolume(e) } on keydown(e) { emit mpKey(e) }
  119. } }
  120. if (isAudio) { audio { src = src preload = "metadata" class = "mp-media"
  121. on animationiteration(e) { emit mpMount(e) } on play(e) { emit mpStarted(e) } on pause(e) { emit mpPaused(e) } on ended(e) { emit mpEnded(e) } on timeupdate(e) { emit mpTime(e) } on durationchange(e) { emit mpTotal(e) } on loadedmetadata(e) { emit mpTotal(e) } on progress(e) { emit mpBuffered(e) } on volumechange(e) { emit mpVolume(e) } on keydown(e) { emit mpKey(e) }
  122. }
  123. if (hasCover) { div { class = "mp-cover"
  124. img { src = cover alt = "" on animationiteration(e) { emit mpMount(e) } }
  125. div {
  126. h2 { title }
  127. p { artist }
  128. }
  129. } }
  130. }
  131. mpSeek { role = "slider" 'aria-label' = "Seek" 'aria-valuemin' = "0" 'aria-valuemax' = "100" 'aria-valuenow' = playedPct tabindex = "0"
  132. on pointerdown(e) { emit mpDown(e) } on pointermove(e) { emit mpMove(e) } on pointerup(e) { emit mpUp(e) } on pointercancel(e) { emit mpUp(e) } on keydown(e) { emit mpBarKey(e) }
  133. div { class = "mp-track"
  134. div { class = "mp-buffered" style = bufferedStyle }
  135. div { class = "mp-played" style = playedStyle }
  136. }
  137. div { class = "mp-thumb" style = thumbStyle }
  138. }
  139. mpButtons {
  140. button { type = "button" class = "mp-back" title = backLabel 'aria-label' = backLabel Icon { name = "skipBack" size = "1.5em" } on click(e) { emit mpBack(e) } }
  141. button { type = "button" class = playClass title = playLabelNow 'aria-label' = playIsNow
  142. span { class = "i-play" Icon { name = "play" size = "1.75em" } }
  143. span { class = "i-pause" Icon { name = "pause" size = "1.75em" } }
  144. on click(e) { emit mpToggle(e) }
  145. }
  146. button { type = "button" class = "mp-forward" title = forwardLabel 'aria-label' = forwardLabel Icon { name = "skipForward" size = "1.5em" } on click(e) { emit mpForward(e) } }
  147. span { class = "mp-times"
  148. time { timeText }
  149. span { 'aria-hidden' = "true" "/" }
  150. time { totalText }
  151. }
  152. button { type = "button" class = muteClass title = muteLabelNow 'aria-label' = muteLabelNow
  153. span { class = "i-on" Icon { name = "volume" } }
  154. span { class = "i-off" Icon { name = "volumeOff" } }
  155. on click(e) { emit mpMute(e) }
  156. }
  157. button { type = "button" class = "mp-speed" title = speedLabel 'aria-label' = speedLabel on click(e) { emit mpSpeed(e) }
  158. span { 'aria-hidden' = "true" speedText + '×' }
  159. }
  160. if (isVideo) { button { type = "button" class = "mp-fullscreen" title = fullscreenLabel 'aria-label' = fullscreenLabel Icon { name = "fullscreen" } on click(e) { emit mpFull(e) } } }
  161. }
  162. if (hasQueue) { div {
  163. h2 { class = "mp-queue-title" queueLabel }
  164. ol { class = "mp-queue" 'aria-label' = queueLabel
  165. for (q of rows) { li { class = q.cls
  166. button { type = "button" 'data-src' = q.src title = q.title
  167. span { class = "mp-q-title" q.title }
  168. span { class = "mp-q-dur" q.dur }
  169. on click(e) { emit mpPick(e) }
  170. }
  171. } }
  172. }
  173. } }
  174. }
  175. }
  176. isVideo = kind != 'audio'
  177. isAudio = kind == 'audio'
  178. hasCover = kind == 'audio' && cover != ''
  179. hasQueue = queue.length > 0
  180. Hybrid rows = rowsOf(queue, src)
  181. // the queue rows with the current one marked (a row's class must be a field of the record)
  182. rowsOf(list, now) {
  183. out = []
  184. let i = 0
  185. while (i < list.length) {
  186. out.push({ src = list[i].src title = list[i].title dur = list[i].dur cls = list[i].src == now ? 'current' : '' })
  187. i = i + 1
  188. }
  189. return out
  190. }
  191. // ---- the buttons ----------------------------------------------------------------------------------------
  192. on mpToggle(e) {
  193. v = mediaOf(e.target)
  194. if (v.paused) { v.play() } else { v.pause() }
  195. return null
  196. }
  197. on mpBack(e) {
  198. v = mediaOf(e.target)
  199. if (v.currentTime > jump) { v.currentTime = v.currentTime - jump } else { v.currentTime = 0 }
  200. return null
  201. }
  202. on mpForward(e) {
  203. v = mediaOf(e.target)
  204. if (v.duration > 0 && v.currentTime + jump < v.duration) { v.currentTime = v.currentTime + jump } else if (v.duration > 0) { v.currentTime = v.duration }
  205. return null
  206. }
  207. on mpMute(e) {
  208. v = mediaOf(e.target)
  209. v.muted = !v.muted
  210. return null
  211. }
  212. on mpSpeed(e) {
  213. v = mediaOf(e.target)
  214. s = v.playbackRate
  215. let next = 1
  216. if (s == 1) { next = 1.25 } else if (s == 1.25) { next = 1.5 } else if (s == 1.5) { next = 2 }
  217. v.playbackRate = next
  218. speedText = '' + next
  219. return null
  220. }
  221. on mpFull(e) {
  222. p = e.target.closest('media-player')
  223. if (document.fullscreenElement != null) { document.exitFullscreen() } else { p.requestFullscreen() }
  224. return null
  225. }
  226. // ---- the seek bar ---------------------------------------------------------------------------------------
  227. // the percent of the bar a pointer x lands on
  228. pctOf(bar, x) {
  229. r = bar.getBoundingClientRect()
  230. if (r.width == 0) { return 0 }
  231. let p = (x - r.left) / r.width * 100
  232. if (p < 0) { p = 0 }
  233. if (p > 100) { p = 100 }
  234. return p - p % 1
  235. }
  236. on mpDown(e) {
  237. v = mediaOf(e.target)
  238. bar = barOf(e.target)
  239. bar.setPointerCapture(e.pointerId)
  240. dragging = 'true'
  241. if (v.duration > 0) { v.currentTime = pctOf(bar, e.clientX) / 100 * v.duration }
  242. return null
  243. }
  244. on mpMove(e) {
  245. if (dragging != 'true') { return null }
  246. v = mediaOf(e.target)
  247. bar = barOf(e.target)
  248. if (v.duration > 0) { v.currentTime = pctOf(bar, e.clientX) / 100 * v.duration }
  249. return null
  250. }
  251. on mpUp(e) {
  252. dragging = 'false'
  253. return null
  254. }
  255. // the seek bar itself takes the keyboard too: arrows jump, Home / End go to the ends
  256. on mpBarKey(e) {
  257. v = mediaOf(e.target)
  258. if (e.key == 'ArrowLeft') { e.preventDefault() emit mpBack(e) return null }
  259. if (e.key == 'ArrowRight') { e.preventDefault() emit mpForward(e) return null }
  260. if (e.key == 'Home' && v.duration > 0) { e.preventDefault() v.currentTime = 0 return null }
  261. if (e.key == 'End' && v.duration > 0) { e.preventDefault() v.currentTime = v.duration return null }
  262. return null
  263. }
  264. // ---- the media element's events --------------------------------------------------------------------------
  265. // the first tick of the mount animation: the element's own state (already loaded before the handlers bound)
  266. // is read in, then the animation is turned off
  267. on mpMount(e) {
  268. e.target.style.animationName = 'none'
  269. v = mediaOf(e.target)
  270. if (v.duration > 0) { totalText = clockText(v.duration) }
  271. bufferedPct = bufferedPctOf(v)
  272. bufferedStyle = 'width:' + bufferedPct + '%'
  273. muted = v.muted ? 'true' : 'false'
  274. if (autoPlay == 'true') { v.play() }
  275. return null
  276. }
  277. on mpStarted(e) { playing = 'true' playClass = 'mp-play is-playing' playLabelNow = pauseLabel playIsNow = pauseLabel return null }
  278. on mpPaused(e) { playing = 'false' playClass = 'mp-play' playLabelNow = playLabel playIsNow = playLabel return null }
  279. on mpTime(e) {
  280. v = e.target
  281. timeText = clockText(v.currentTime)
  282. if (v.duration > 0) {
  283. playedPct = '' + (v.currentTime / v.duration * 100 - v.currentTime / v.duration * 100 % 1)
  284. playedStyle = 'width:' + playedPct + '%'
  285. thumbStyle = 'left:' + playedPct + '%'
  286. if (totalText == '0:00') { totalText = clockText(v.duration) }
  287. bufferedPct = bufferedPctOf(v)
  288. bufferedStyle = 'width:' + bufferedPct + '%'
  289. }
  290. return null
  291. }
  292. on mpTotal(e) {
  293. if (e.target.duration > 0) { totalText = clockText(e.target.duration) }
  294. return null
  295. }
  296. on mpBuffered(e) {
  297. v = e.target
  298. bufferedPct = bufferedPctOf(v)
  299. bufferedStyle = 'width:' + bufferedPct + '%'
  300. if (v.duration > 0 && totalText == '0:00') { totalText = clockText(v.duration) }
  301. return null
  302. }
  303. on mpVolume(e) {
  304. muted = e.target.muted ? 'true' : 'false'
  305. muteClass = muted == 'true' ? 'mp-mute is-muted' : 'mp-mute'
  306. muteLabelNow = muted == 'true' ? unmuteLabel : muteLabel
  307. return null
  308. }
  309. on mpKey(e) {
  310. if (e.key == ' ' || e.key == 'Spacebar') { e.preventDefault() emit mpToggle(e) return null }
  311. if (e.key == 'ArrowLeft') { e.preventDefault() emit mpBack(e) return null }
  312. if (e.key == 'ArrowRight') { e.preventDefault() emit mpForward(e) return null }
  313. return null
  314. }
  315. // ---- the queue ---------------------------------------------------------------------------------------------
  316. // a tap on a queue item tells the host, which hands a new src back (the player is built anew with it)
  317. // a tap on a queue item tells the host, which hands a new src back (the player is built anew with it); the
  318. // new one starts playing at once (the user asked for it — autoplay policies allow a play after a tap)
  319. on mpPick(e) {
  320. b = e.target.closest('button')
  321. if (onPlay != null) { onPlay(b.getAttribute('data-src')) }
  322. return null
  323. }
  324. // an item ended: the next one is picked the same way (the last one just stops)
  325. on mpEnded(e) {
  326. playing = 'false'
  327. let i = 0
  328. let next = ''
  329. while (i < queue.length) {
  330. if (queue[i].src == src && i + 1 < queue.length) { next = queue[i + 1].src }
  331. i = i + 1
  332. }
  333. if (next != '' && onPlay != null) { onPlay(next) }
  334. return null
  335. }

Branches

Latest commits

  • 1c41293eMediaPlayer: back / forward 10 s as replay / forward 10 icons (circular arrow with a 10), the play button keeps its surface background on audio and video, the media route's range end is a letmre
  • 9e1ab228MP: report, LOG line, STATUS entrymre
  • dd003e5dMediaPlayer: audio and video in one phone-first player (components/media-player), its demo /media-player with a queue, the media icons in components/icons, the demo's media files served with ranges (lib/media.hl), 35 gate checksmre
  • e54f83adMdEditor: text typed before the editor is built is kept (the build takes it in once, the input handler no longer writes it to the field first), tickets#35mre
  • 8c920932gate: the 11 old drop-zone checks now test the one-box pick mode (drop anywhere in the box, Choose files button inside it, no drop zone)mre
  • 626de199MdEditor: copy and cut put the selection's Markdown on the clipboard, a clipboard with HTML only pastes its text, gate checks for copy, cut and paste (components#20)mre
  • 5228126dUX: components synced from the tickets/layouts UX mission (comments: State select in the footer and button words; files-upload: one-box pick mode; modal: footer rule for its own footer). WIP: the gate's #18 pick-mode checks still expect the old drop zone (11 fail), see the UX2 reportmre
  • 0a9216fbMdEditor: a Table button in the toolbar, a typed pipe row fills the cells, tables take the page theme's look; gate checks updated for 12 toolbar buttonsmre
  • f9d405c8comments: reactions row half as far from its comment (creator 2026-10-24: 'half this distance please'); the 44 px tap targets staymre
  • 4922f9cfsessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 0355975areports/MC-mobile.md, LOG, STATUS (MC)mre
  • 3f0a7229Month view, date picker, range picker: names follow the page language (English by default, not the browser's), weekday/month names formatted in UTC (a UTC+12 zone showed Tue first), 44 px day cells and buttons, Send row air; gate checks at 390 px for every page, popup and dialog (MC)mre
  • 29eb07eaPhone: 44 px targets on the site (brand, home links, buttons), comments, modal and pagination; the header is the brand alone on a phone; comments demo: labelled 'You are' group with the chosen user pressed (MC)mre
  • d1cc83e2reports/E2-toolbar.mdmre
  • 214c3183MdEditor on a phone: toolbar as two even rows of 44 px targets (no clipped icon, no swipe), 'Markdown source' label 15 px, table head 16 px; gate checks (E2)mre
  • 9215bbaareports/F5-empty.mdmre
  • 134b4e3eMdEditor: an editor the framework puts into the page is built at once (page observer), a surface put in anew under a built editor is redrawn; gates for both (hybriel#211)mre
  • 0dce2899reports/K1-bubble.mdmre
  • 6b0936a0comments: 'edited' foldable also drops the theme's border, margin and radius (display: contents alone left them computed)mre
  • 8d79ff79comments bubble hugs its content: a readonly md-editor surface gets no inline min-height (it beat the stylesheet's min-height 0); 'edited' is a quiet label beside the time, versions unframed; gate checksmre