@playpilot/tpi 8.35.0-beta.2 → 8.35.2

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": "@playpilot/tpi",
3
- "version": "8.35.0-beta.2",
3
+ "version": "8.35.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -151,16 +151,6 @@ export const translations = {
151
151
  [Language.Swedish]: 'Visa mindre',
152
152
  [Language.Danish]: 'Vis mindre',
153
153
  },
154
- 'Read More': {
155
- [Language.English]: 'Read more',
156
- [Language.Swedish]: 'Läs mer',
157
- [Language.Danish]: 'Læs mere',
158
- },
159
- 'Read Less': {
160
- [Language.English]: 'Read less',
161
- [Language.Swedish]: 'Läs mindre',
162
- [Language.Danish]: 'Læs mindre',
163
- },
164
154
  'Cast': {
165
155
  [Language.English]: 'Cast',
166
156
  [Language.Swedish]: 'Rollista',
@@ -256,6 +246,11 @@ export const translations = {
256
246
  [Language.Swedish]: 'Toppbetyg',
257
247
  [Language.Danish]: 'Højst vurderet',
258
248
  },
249
+ 'IMDb Rating': {
250
+ [Language.English]: 'IMDb Rating',
251
+ [Language.Swedish]: 'IMDb-betyg',
252
+ [Language.Danish]: 'IMDb-vurdering',
253
+ },
259
254
  '-popularity': {
260
255
  [Language.English]: 'Popularity',
261
256
  [Language.Swedish]: 'Popularitet',
@@ -271,6 +266,11 @@ export const translations = {
271
266
  [Language.Swedish]: 'Toppbetyg',
272
267
  [Language.Danish]: 'Højst vurderet',
273
268
  },
269
+ '-imdb_score': {
270
+ [Language.English]: 'IMDb Rating',
271
+ [Language.Swedish]: 'IMDb-betyg',
272
+ [Language.Danish]: 'IMDb-vurdering',
273
+ },
274
274
  'Search': {
275
275
  [Language.English]: 'Search',
276
276
  [Language.Swedish]: 'Sök',
@@ -368,36 +368,6 @@ export const translations = {
368
368
  [Language.Swedish]: 'Utforska alla filmer och tv-serier',
369
369
  [Language.Danish]: 'Udforsk alle film og tv-serier',
370
370
  },
371
- 'Job: all': {
372
- [Language.English]: 'All',
373
- [Language.Swedish]: 'Alla',
374
- [Language.Danish]: 'Alle',
375
- },
376
- 'Job: actor': {
377
- [Language.English]: 'Actor',
378
- [Language.Swedish]: 'Skådespelare',
379
- [Language.Danish]: 'Skuespiller',
380
- },
381
- 'Job: producer': {
382
- [Language.English]: 'Producer',
383
- [Language.Swedish]: 'Producent',
384
- [Language.Danish]: 'Producer',
385
- },
386
- 'Job: executive-producer': {
387
- [Language.English]: 'Executive Producer',
388
- [Language.Swedish]: 'Verkställande producent',
389
- [Language.Danish]: 'Administrerende producer',
390
- },
391
- 'Job: writer': {
392
- [Language.English]: 'Writer',
393
- [Language.Swedish]: 'Manusförfattare',
394
- [Language.Danish]: 'Manuskriptforfatter',
395
- },
396
- 'Job: director': {
397
- [Language.English]: 'Director',
398
- [Language.Swedish]: 'Regissör',
399
- [Language.Danish]: 'Instruktør',
400
- },
401
371
 
402
372
  // Genres
403
373
  'All': {
@@ -3,4 +3,5 @@ export const Sorting = Object.freeze({
3
3
  New: '-new',
4
4
  Best: '-best',
5
5
  Chronological: '-year',
6
+ IMDb: '-imdb_score',
6
7
  })
@@ -54,7 +54,6 @@ export const participants: ParticipantData[] = [
54
54
  image_uuid: null,
55
55
  gender: 'Male',
56
56
  character: 'Will Rodman (archive footage) (uncredited)',
57
- description: 'Some description',
58
57
  },
59
58
  {
60
59
  sid: 'pr8bZm',
@@ -66,7 +65,6 @@ export const participants: ParticipantData[] = [
66
65
  image_uuid: null,
67
66
  gender: 'Male',
68
67
  character: 'Old Man',
69
- description: 'Some description',
70
68
  },
71
69
  {
72
70
  sid: 'pr45Dp',
@@ -78,7 +76,6 @@ export const participants: ParticipantData[] = [
78
76
  image_uuid: null,
79
77
  gender: 'Male',
80
78
  character: 'Self (archive footage) (uncredited)',
81
- description: 'Some description',
82
79
  },
83
80
  {
84
81
  sid: 'pr6DnN',
@@ -90,7 +87,6 @@ export const participants: ParticipantData[] = [
90
87
  image_uuid: null,
91
88
  gender: 'Male',
92
89
  character: 'Dreyfus',
93
- description: 'Some description',
94
90
  },
95
91
  {
96
92
  sid: 'pr7GK8',
@@ -102,7 +98,6 @@ export const participants: ParticipantData[] = [
102
98
  image_uuid: null,
103
99
  gender: 'Male',
104
100
  character: 'Cannon-Gunner',
105
- description: 'Some description',
106
101
  },
107
102
  {
108
103
  sid: 'pr88KG',
@@ -114,7 +109,6 @@ export const participants: ParticipantData[] = [
114
109
  image_uuid: null,
115
110
  gender: 'Female',
116
111
  character: 'Cornelia',
117
- description: 'Some description',
118
112
  },
119
113
  ]
120
114
 
@@ -1,7 +1,4 @@
1
- import type { Sorting } from '$lib/enums/Sorting'
2
-
3
1
  export type ExploreFilterType = 'array' | 'range' | 'string'
4
- export type ExploreFilterItem = { type: ExploreFilterType; value: unknown }
2
+ export type ExploreFilterItem = { type: ExploreFilterType, value: unknown }
5
3
  export type ExploreFilter = Record<string, ExploreFilterItem>
6
- export type ExploreFilterItemArrayValue = { label: string; value: string }
7
- export type ExploreTitleSorting = { label: string; value: (typeof Sorting)[keyof typeof Sorting] }
4
+ export type ExploreFilterItemArrayValue = { label: string, value: string }
@@ -1,7 +1,6 @@
1
1
  export type ParticipantData = {
2
2
  sid: string
3
3
  name: string
4
- description: string
5
4
  birth_date: string
6
5
  death_date: string | null
7
6
  jobs: Job[]
@@ -17,6 +16,7 @@ export type ParticipantData = {
17
16
  }
18
17
  gender: string
19
18
  character?: string | null
19
+ bio?: string | null
20
20
  }
21
21
 
22
22
  export type Job = 'actor' | 'writer' | 'director'
package/src/main.ts CHANGED
@@ -83,17 +83,38 @@ window.PlayPilotLinkInjections ||= {
83
83
  },
84
84
 
85
85
  mount(): void {
86
+ const scriptId = 'playpilot-mount'
87
+ const styleId = 'playpilot-mount-style'
88
+
89
+ const ondoubleload = (event: Event): void => {
90
+ if (!event.target) return
91
+
92
+ (event.target as HTMLElement).dataset.loaded = 'true'
93
+
94
+ if (document.getElementById(scriptId)?.dataset.loaded !== 'true' || document.getElementById(styleId)?.dataset.loaded !== 'true') return
95
+
96
+ window.PlayPilotMount?.mount()
97
+ }
98
+
86
99
  const shouldLoadEditorial = isEditorialModeEnabled() || getAuthToken()
87
100
 
88
101
  const script = document.createElement('script')
89
-
90
- script.id = 'playpilot-mount'
102
+ script.id = scriptId
91
103
  script.src = `${cdnBaseUrl}/dist/${shouldLoadEditorial ? 'editorial.' : ''}mount.js`
92
104
  // script.src = './dist/mount.js' // Use me during development of this script
105
+ script.defer = true
106
+ script.onload = ondoubleload
93
107
 
94
- script.onload = () => window.PlayPilotMount?.mount()
108
+ const style = document.createElement('link')
109
+ style.id = styleId
110
+ style.rel = 'stylesheet'
111
+ style.type = 'text/css'
112
+ style.href = `${cdnBaseUrl}/dist/mount.css`
113
+ // style.href = './dist/mount.css' // Use me during development of this script
114
+ style.onload = ondoubleload
95
115
 
96
116
  document.body.appendChild(script)
117
+ document.head.appendChild(style)
97
118
  },
98
119
  }
99
120
 
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type { ExploreFilter, ExploreTitleSorting } from '$lib/types/filter'
2
+ import type { ExploreFilter } from '$lib/types/filter'
3
3
  import genres from '$lib/data/genres.json'
4
4
  import { fetchProviders } from '$lib/api/providers'
5
5
  import { t } from '$lib/localization'
@@ -16,9 +16,7 @@
16
16
  interface Props {
17
17
  filter: ExploreFilter
18
18
  limit?: boolean
19
- hideActive?: boolean
20
19
  showSorting?: boolean
21
- sortings?: null | ExploreTitleSorting[]
22
20
  searchQuery?: string
23
21
  onchange?: () => void
24
22
  onempty?: () => void
@@ -27,9 +25,7 @@
27
25
  const {
28
26
  filter,
29
27
  limit = true,
30
- hideActive = false,
31
28
  showSorting = true,
32
- sortings = null,
33
29
  searchQuery = '',
34
30
  onchange = () => null,
35
31
  onempty = () => null,
@@ -69,7 +65,7 @@
69
65
  data: [{ label: t('Movies'), value: 'movie' }, { label: t('Shows'), value: 'series' }, { label: t('Kids'), value: 'kids' }, { label: t('Documentary'), value: 'documentary' }],
70
66
  }]
71
67
 
72
- let limited = $derived(limit)
68
+ let limited = $state(limit)
73
69
  let wasPreviouslyActive = false
74
70
 
75
71
  $effect(() => {
@@ -108,15 +104,13 @@
108
104
 
109
105
  {#if showSorting}
110
106
  <div class="sorting" transition:fly={{ x: 5, duration: 100 }}>
111
- <FilterSorting {filter} {onchange} {sortings} />
107
+ <FilterSorting {filter} {onchange} />
112
108
  </div>
113
109
  {/if}
114
110
  </div>
115
111
  </div>
116
112
 
117
- {#if !hideActive}
118
- <ActiveFilterItems {filter} {items} />
119
- {/if}
113
+ <ActiveFilterItems {filter} {items} />
120
114
 
121
115
  <style lang="scss">
122
116
  .filter {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import Button from '../../Button.svelte'
3
3
  import IconArrow from '../../Icons/IconArrow.svelte'
4
- import type { ExploreFilter, ExploreTitleSorting } from '$lib/types/filter'
4
+ import type { ExploreFilter } from '$lib/types/filter'
5
5
  import { t } from '$lib/localization'
6
6
  import Dropdown from './Dropdown.svelte'
7
7
  import { Sorting } from '$lib/enums/Sorting'
@@ -9,18 +9,18 @@
9
9
  interface Props {
10
10
  filter: ExploreFilter
11
11
  onchange?: () => void
12
- sortings?: null | ExploreTitleSorting[]
13
12
  }
14
13
 
15
- const { filter, onchange = () => null, sortings = null }: Props = $props()
14
+ const { filter, onchange = () => null }: Props = $props()
16
15
 
17
16
  const param = 'ordering'
18
17
 
19
- const options = $derived(sortings || [
18
+ const options = [
20
19
  { label: 'Popularity', value: Sorting.Popular },
21
20
  { label: 'New', value: Sorting.New },
22
21
  { label: 'Top Rated', value: Sorting.Best },
23
- ])
22
+ { label: 'IMDb Rating', value: Sorting.IMDb },
23
+ ]
24
24
 
25
25
  const label = $derived(options.find(({ value }) => value === filter[param]?.value)?.label || 'Sort By')
26
26
 
@@ -41,7 +41,7 @@
41
41
  {/snippet}
42
42
 
43
43
  {#snippet content()}
44
- <div class="content" data-testid="content">
44
+ <div data-testid="content">
45
45
  {#each options as { label, value }}
46
46
  {@const active = value === filter[param]?.value}
47
47
  <button class="option" class:active onclick={() => setFilter(value)}>{t(label)}</button>
@@ -51,10 +51,6 @@
51
51
  </Dropdown>
52
52
 
53
53
  <style lang="scss">
54
- .content {
55
- width: margin(7);
56
- }
57
-
58
54
  .option {
59
55
  appearance: none;
60
56
  padding: margin(0.75) margin(1);
@@ -65,6 +61,7 @@
65
61
  font-family: inherit;
66
62
  font-size: inherit;
67
63
  color: theme(text-color-alt);
64
+ white-space: nowrap;
68
65
  cursor: pointer;
69
66
 
70
67
  &:hover,
@@ -21,11 +21,9 @@
21
21
  searchQuery?: string,
22
22
  filter?: ExploreFilter
23
23
  forceGrid?: boolean
24
- hidePlaylinks?: boolean
25
- onTitleClick?: null | ((event: MouseEvent, titles: TitleData[], index: number) => void)
26
24
  }
27
25
 
28
- const { searchQuery = '', filter = {}, forceGrid = false, hidePlaylinks = false, onTitleClick = null }: Props = $props()
26
+ const { searchQuery = '', filter = {}, forceGrid = false }: Props = $props()
29
27
 
30
28
  // svelte-ignore non_reactive_update
31
29
  let page = 1
@@ -55,7 +53,9 @@
55
53
  if (filter) setFilter()
56
54
  })
57
55
 
58
- onDestroy(emptyFilter)
56
+ onDestroy(() => {
57
+ emptyFilter()
58
+ })
59
59
 
60
60
  async function getTitlesForFilter(): Promise<APIPaginatedResult<TitleData>> {
61
61
  latestRequestId += 1
@@ -132,12 +132,7 @@
132
132
  track(TrackingEvent.ExploreShowMore, null, { page })
133
133
  }
134
134
 
135
- function openTitle(event: MouseEvent, title: TitleData, index: number): void {
136
- if (onTitleClick) {
137
- onTitleClick(event, titles, index)
138
- return
139
- }
140
-
135
+ function openTitle(event: MouseEvent, title: TitleData): void {
141
136
  openModal({ event, data: title })
142
137
  track(TrackingEvent.ExploreTitleClick, title)
143
138
  }
@@ -152,9 +147,9 @@
152
147
  </script>
153
148
 
154
149
  <div class="titles" class:grid role="main" style:--grid-columns={gridColumns} bind:clientWidth={width} data-testid="explore-results">
155
- {#each titles as title, index}
150
+ {#each titles as title}
156
151
  {#key title.sid}
157
- <TitleComponent {title} {hidePlaylinks} onclick={(event: MouseEvent) => openTitle(event, title, index)} />
152
+ <TitleComponent {title} onclick={(event: MouseEvent) => openTitle(event, title)} />
158
153
  {/key}
159
154
  {/each}
160
155
 
@@ -1,6 +1,5 @@
1
1
  <script lang="ts">
2
2
  import type { TitleData } from '$lib/types/title'
3
- import { getContext } from 'svelte'
4
3
  import IconIMDb from './Icons/IconIMDb.svelte'
5
4
  import PlaylinksCompact from './Playlinks/PlaylinksCompact.svelte'
6
5
  import TitlePoster from './TitlePoster.svelte'
@@ -8,10 +7,9 @@
8
7
  interface Props {
9
8
  title: TitleData
10
9
  onclick?: (event: MouseEvent) => void
11
- hidePlaylinks?: boolean
12
10
  }
13
11
 
14
- const { title, onclick = () => null, hidePlaylinks = false }: Props = $props()
12
+ const { title, onclick = () => null }: Props = $props()
15
13
  </script>
16
14
 
17
15
  <button class="title" {onclick} data-testid="title">
@@ -35,11 +33,9 @@
35
33
  </div>
36
34
 
37
35
  <div class="content">
38
- <div class="heading" class:margin={!hidePlaylinks}>{title.title}</div>
36
+ <div class="heading">{title.title}</div>
39
37
 
40
- {#if !hidePlaylinks}
41
- <PlaylinksCompact playlinks={title.providers} size={20} />
42
- {/if}
38
+ <PlaylinksCompact playlinks={title.providers} size={20} />
43
39
  </div>
44
40
  </button>
45
41
 
@@ -85,6 +81,7 @@
85
81
  }
86
82
 
87
83
  .heading {
84
+ margin-bottom: margin(0.5);
88
85
  overflow: hidden;
89
86
  text-overflow: ellipsis;
90
87
  white-space: nowrap;
@@ -99,10 +96,6 @@
99
96
  color: theme(grid-item-title-hover-text-color, text-color);
100
97
  text-decoration: theme(grid-item-title-hover-text-decoration, none);
101
98
  }
102
-
103
- &.margin {
104
- margin-bottom: margin(0.5);
105
- }
106
99
  }
107
100
 
108
101
  .meta {
@@ -1,5 +1,3 @@
1
- <svg width="11" height="13" viewBox="0 0 11 13">
2
- <path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"/>
3
- <path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"/>
4
- <path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"/>
1
+ <svg height="24px" viewBox="0 -960 960 960" width="24px">
2
+ <path fill="currentColor" transform="scale(1.2) translate(0, 75)" scale="1.2" d="M440-120v-240h80v80h320v80H520v80h-80Zm-320-80v-80h240v80H120Zm160-160v-80H120v-80h160v-80h80v240h-80Zm160-80v-80h400v80H440Zm160-160v-240h80v80h160v80H680v80h-80Zm-480-80v-80h400v80H120Z" />
5
3
  </svg>
@@ -227,7 +227,7 @@
227
227
  max-width: 600px;
228
228
 
229
229
  .wide & {
230
- max-width: 1200px;
230
+ max-width: 900px;
231
231
  }
232
232
  }
233
233
 
@@ -14,6 +14,8 @@
14
14
 
15
15
  const { participant, initialScrollPosition = 0, ...restProps }: Props = $props()
16
16
 
17
+ let windowWidth = $state(0)
18
+
17
19
  track(TrackingEvent.ParticipantModalView, null, { participant: participant.name })
18
20
 
19
21
  onMount(() => {
@@ -23,6 +25,8 @@
23
25
  })
24
26
  </script>
25
27
 
26
- <Modal {initialScrollPosition} {...restProps} closeButtonStyle="flat" tall wide blur>
28
+ <svelte:window bind:innerWidth={windowWidth} />
29
+
30
+ <Modal {initialScrollPosition} {...restProps} closeButtonStyle="flat" tall>
27
31
  <Participant {participant} />
28
32
  </Modal>