@jant/core 0.4.2 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jant/core",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "A modern, open-source microblogging platform built on Cloudflare Workers",
5
5
  "type": "module",
6
6
  "exports": {
package/src/preset.css CHANGED
@@ -503,6 +503,10 @@ html {
503
503
  margin-top: 3rem;
504
504
  }
505
505
 
506
+ article:has(.media-gallery-scroll-wrap) [data-post-meta] {
507
+ width: auto;
508
+ }
509
+
506
510
  @media (max-width: 1024px) {
507
511
  [data-page="search"],
508
512
  .site-home-header,
@@ -521,4 +525,8 @@ html {
521
525
  [data-post-end] {
522
526
  width: min(100%, 35rem);
523
527
  }
528
+
529
+ article:has(.media-gallery-scroll-wrap) [data-post-meta] {
530
+ width: auto;
531
+ }
524
532
  }
@@ -134,7 +134,7 @@
134
134
  "display: block; width: 100%; height: auto;")
135
135
  (printf "display: block; width: 100%%; height: %dpx; object-fit: cover;" $rowHeight) -}}
136
136
  {{- if $isShort -}}
137
- <div class="media-video-wrap media-video-wrap-short" style="{{ $videoWrapStyle }}">
137
+ <div class="media-video-wrap media-video-wrap-short" style="{{ $videoWrapStyle | safeCSS }}">
138
138
  <a href="{{ .src }}" data-lightbox-index="{{ ._lbIdx }}" class="media-visual-frame media-video-link" style="display: block; cursor: pointer;">
139
139
  <video preload="none" muted playsinline loop
140
140
  {{- with .poster }} poster="{{ . }}"{{- end -}}
@@ -144,7 +144,7 @@
144
144
  data-video-src="{{ .src }}"
145
145
  data-feed-video-id="{{ .id }}"
146
146
  class="media-visual"
147
- style="{{ $videoStyle }}"></video>
147
+ style="{{ $videoStyle | safeCSS }}"></video>
148
148
  </a>
149
149
  <button type="button" class="media-feed-video-mute" data-feed-video-mute-toggle data-muted="true" aria-label="Play with sound">
150
150
  <svg class="media-feed-video-icon media-feed-video-icon-muted" width="12" height="12" viewBox="0 0 48 48" fill="currentColor" aria-hidden="true">
@@ -160,13 +160,13 @@
160
160
  {{- else -}}
161
161
  <a href="{{ .src }}" data-lightbox-index="{{ ._lbIdx }}"
162
162
  class="media-video-wrap media-visual-frame"
163
- style="{{ $videoWrapStyle }}">
163
+ style="{{ $videoWrapStyle | safeCSS }}">
164
164
  <video preload="none" muted playsinline
165
165
  {{- with .poster }} poster="{{ . }}"{{- end -}}
166
166
  {{- with .width }} width="{{ . }}"{{- end -}}
167
167
  {{- with .height }} height="{{ . }}"{{- end }}
168
168
  class="media-visual"
169
- style="{{ $videoStyle }}"></video>
169
+ style="{{ $videoStyle | safeCSS }}"></video>
170
170
  <div class="media-video-play-overlay">
171
171
  <svg viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>
172
172
  </div>
@@ -1314,7 +1314,10 @@ hr.feed-divider {
1314
1314
  position: relative;
1315
1315
  display: flex;
1316
1316
  flex-direction: column;
1317
- gap: calc(var(--space-xl) * 1.1);
1317
+ /* Match runtime `.thread-group-preview .thread-item` which uses
1318
+ `padding: var(--site-thread-item-spacing) 0` — adjacent items have
1319
+ 2x the token between them, so the flex `gap` here is 2x to match. */
1320
+ gap: calc(var(--site-thread-item-spacing) * 2);
1318
1321
  margin: 0;
1319
1322
  padding: 0;
1320
1323
  border-left: 0;
@@ -280,7 +280,7 @@
280
280
  var(--site-nav-hover-bg) 42%,
281
281
  transparent
282
282
  );
283
- --site-thread-item-spacing: 16px;
283
+ --site-thread-item-spacing: 32px;
284
284
  --site-thread-dot-ring: color-mix(
285
285
  in srgb,
286
286
  var(--site-accent) 16%,
@@ -1,6 +0,0 @@
1
- import "./url-umUptr5z.js";
2
- import { t as createApp } from "./app-FtJ5R8pi.js";
3
- import "./export-1DCaq4BR.js";
4
- import "./env-CgaH9Mut.js";
5
- import "./github-sync-BWIpO72V.js";
6
- export { createApp };