@phosart/common 0.4.57 → 0.4.59

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.
@@ -138,6 +138,7 @@
138
138
  <!-- svelte-ignore a11y_no_static_element_interactions -->
139
139
  <div
140
140
  class="main-container overscroll-contain"
141
+ class:comic-mode={isComic}
141
142
  ondragstartcapture={(e) => e.preventDefault()}
142
143
  onpointerdown={onPointerDown}
143
144
  onpointerup={onPointerUp}
@@ -186,7 +187,7 @@
186
187
  {/snippet}
187
188
  </ImageView>
188
189
  </div>
189
- {#if piece.alts && piece.alts.length > 0}
190
+ {#if piece.alts && piece.alts.length > 0 && !isComic}
190
191
  <div
191
192
  bind:clientWidth={altWidth}
192
193
  style="background-color: transparent; width:75px; position: relative"
@@ -290,6 +291,9 @@
290
291
  .nav-container.nav-container {
291
292
  width: 0;
292
293
  }
294
+ .main-container.main-container.comic-mode {
295
+ max-width: 90vw;
296
+ }
293
297
  }
294
298
 
295
299
  .image-section {
@@ -323,6 +327,10 @@
323
327
  color: white;
324
328
  }
325
329
 
330
+ .main-container.comic-mode {
331
+ max-width: 50vw;
332
+ }
333
+
326
334
  .main-container {
327
335
  flex-grow: 1;
328
336
  height: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phosart/common",
3
- "version": "0.4.57",
3
+ "version": "0.4.59",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -62,7 +62,7 @@
62
62
  "tailwindcss": "^4.1.17",
63
63
  "typescript": "^5.9.3",
64
64
  "typescript-eslint": "^8.48.1",
65
- "vite": "^7.3.2",
65
+ "vite": "^7.3.5",
66
66
  "vitest": "^4.0.15",
67
67
  "vitest-browser-svelte": "^2.0.1"
68
68
  },
@@ -138,6 +138,7 @@
138
138
  <!-- svelte-ignore a11y_no_static_element_interactions -->
139
139
  <div
140
140
  class="main-container overscroll-contain"
141
+ class:comic-mode={isComic}
141
142
  ondragstartcapture={(e) => e.preventDefault()}
142
143
  onpointerdown={onPointerDown}
143
144
  onpointerup={onPointerUp}
@@ -186,7 +187,7 @@
186
187
  {/snippet}
187
188
  </ImageView>
188
189
  </div>
189
- {#if piece.alts && piece.alts.length > 0}
190
+ {#if piece.alts && piece.alts.length > 0 && !isComic}
190
191
  <div
191
192
  bind:clientWidth={altWidth}
192
193
  style="background-color: transparent; width:75px; position: relative"
@@ -290,6 +291,9 @@
290
291
  .nav-container.nav-container {
291
292
  width: 0;
292
293
  }
294
+ .main-container.main-container.comic-mode {
295
+ max-width: 90vw;
296
+ }
293
297
  }
294
298
 
295
299
  .image-section {
@@ -323,6 +327,10 @@
323
327
  color: white;
324
328
  }
325
329
 
330
+ .main-container.comic-mode {
331
+ max-width: 50vw;
332
+ }
333
+
326
334
  .main-container {
327
335
  flex-grow: 1;
328
336
  height: 100%;