@novely/solid-renderer 0.2.2 → 0.2.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/dist/index.jsx +4 -4
- package/dist/styles/index.css +25 -13
- package/package.json +1 -1
package/dist/index.jsx
CHANGED
|
@@ -79,7 +79,7 @@ var DialogName = (props) => {
|
|
|
79
79
|
opacity: props.character ? 1 : 0,
|
|
80
80
|
visibility: props.character ? "visible" : "hidden"
|
|
81
81
|
}}
|
|
82
|
-
>{props.name ||
|
|
82
|
+
>{props.name || <> </>}</span>;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// src/components/Character.tsx
|
|
@@ -341,7 +341,7 @@ var Game = (props) => {
|
|
|
341
341
|
resolve?.();
|
|
342
342
|
};
|
|
343
343
|
const layers = () => Object.values(props.state.layers);
|
|
344
|
-
return <div class="root" style={background()}>
|
|
344
|
+
return <div class="root game" style={background()}>
|
|
345
345
|
<div data-characters={true} class="characters"><For each={Object.entries(props.state.characters)}>{([character, data2]) => <Show3 when={data2.visible}><Character
|
|
346
346
|
character={character}
|
|
347
347
|
data={data2}
|
|
@@ -390,7 +390,7 @@ var Game = (props) => {
|
|
|
390
390
|
class="dialog-panel-label"
|
|
391
391
|
data-used={Boolean(props.state.choices.question)}
|
|
392
392
|
aria-hidden={!props.state.choices.question}
|
|
393
|
-
>{props.state.choices.question ||
|
|
393
|
+
>{props.state.choices.question || <> </>}</span>
|
|
394
394
|
<For each={props.state.choices.choices}>{([text, _, active], i) => {
|
|
395
395
|
const disabled = active ? !active() : false;
|
|
396
396
|
const index = i();
|
|
@@ -616,7 +616,7 @@ var CustomScreen = (props) => {
|
|
|
616
616
|
props.setState("screen", target.dataset.novelyGoto);
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
|
-
return <Show6 when={dom()}><div class="root" onClick={onClick}>{dom()}</div></Show6>;
|
|
619
|
+
return <Show6 when={dom()}><div class="root custom" onClick={onClick}>{dom()}</div></Show6>;
|
|
620
620
|
};
|
|
621
621
|
|
|
622
622
|
// src/renderer.tsx
|
package/dist/styles/index.css
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"Segoe UI Emoji",
|
|
19
19
|
"Segoe UI Symbol",
|
|
20
20
|
"Noto Color Emoji";
|
|
21
|
-
background-repeat: no-repeat;
|
|
22
|
-
background-position: center;
|
|
23
|
-
background-size: cover;
|
|
21
|
+
background-repeat: var(--novely-root-background-repeat, no-repeat);
|
|
22
|
+
background-position: var(--novely-root-background-position, center);
|
|
23
|
+
background-size: var(--novely-root-background-size, cover);
|
|
24
24
|
}
|
|
25
25
|
.root,
|
|
26
26
|
.root * {
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
line-height: 1.2;
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
user-select: none;
|
|
43
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
44
|
+
-webkit-tap-highlight-color: transparent;
|
|
45
|
+
-webkit-touch-callout: none;
|
|
43
46
|
}
|
|
44
47
|
.button:hover {
|
|
45
48
|
background-color: var(--novely-button-hover-background-color, #ffffff);
|
|
@@ -123,10 +126,15 @@
|
|
|
123
126
|
position: absolute;
|
|
124
127
|
inset: 0;
|
|
125
128
|
z-index: 2;
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
max-width: 100vw;
|
|
126
131
|
display: none;
|
|
127
132
|
text-align: center;
|
|
128
133
|
font-size: 1.5rem;
|
|
129
134
|
user-select: none;
|
|
135
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
136
|
+
-webkit-tap-highlight-color: transparent;
|
|
137
|
+
-webkit-touch-callout: none;
|
|
130
138
|
}
|
|
131
139
|
.action-text[data-shown=true] {
|
|
132
140
|
display: flex;
|
|
@@ -139,6 +147,8 @@
|
|
|
139
147
|
.action-text[data-shown=true] > span {
|
|
140
148
|
cursor: pointer;
|
|
141
149
|
user-select: none;
|
|
150
|
+
word-wrap: break-word;
|
|
151
|
+
word-break: break-word;
|
|
142
152
|
}
|
|
143
153
|
|
|
144
154
|
/* src/styles/action-text/index.css */
|
|
@@ -168,6 +178,7 @@
|
|
|
168
178
|
font-size: 1.02rem;
|
|
169
179
|
padding: 0.25rem 0.5rem;
|
|
170
180
|
border-radius: 0.25rem;
|
|
181
|
+
user-select: none;
|
|
171
182
|
}
|
|
172
183
|
|
|
173
184
|
/* src/styles/select/index.css */
|
|
@@ -303,12 +314,12 @@
|
|
|
303
314
|
.dialog-panel-label {
|
|
304
315
|
user-select: none;
|
|
305
316
|
font-size: 1.2375rem;
|
|
317
|
+
padding: 0.25rem 0.5rem;
|
|
318
|
+
border-radius: 0.25rem;
|
|
306
319
|
}
|
|
307
320
|
.dialog-panel-label[data-used=true] {
|
|
308
321
|
background: var(--novely-dialog-panel-label-background, #ffe9f3);
|
|
309
322
|
color: var(--novely-dialog-panel-label-color, #000);
|
|
310
|
-
padding: 0.25rem 0.5rem;
|
|
311
|
-
border-radius: 0.25rem;
|
|
312
323
|
}
|
|
313
324
|
@media (orientation: portrait) {
|
|
314
325
|
.dialog-panel {
|
|
@@ -544,30 +555,31 @@
|
|
|
544
555
|
margin-block-start: 0;
|
|
545
556
|
margin-block-end: 0;
|
|
546
557
|
touch-action: auto !important;
|
|
547
|
-
border-radius: var(--saves-list-border-radius, 14px);
|
|
548
|
-
background-color: var(--saves-list-background-color, #ffffff57);
|
|
558
|
+
border-radius: var(--novely-saves-list-border-radius, 14px);
|
|
559
|
+
background-color: var(--novely-saves-list-background-color, #ffffff57);
|
|
549
560
|
}
|
|
550
561
|
.saves__list::-webkit-scrollbar {
|
|
551
562
|
width: 14px;
|
|
552
563
|
}
|
|
553
564
|
.saves__list::-webkit-scrollbar-track {
|
|
554
|
-
background-color: #ffe9f3;
|
|
555
|
-
border-radius: 7px;
|
|
565
|
+
background-color: var(--novely-scrollbar-track-bg-color, #ffe9f3);
|
|
566
|
+
border-radius: var(--novely-scrollbar-track-border-radius, 7px);
|
|
556
567
|
}
|
|
557
568
|
.saves__list::-webkit-scrollbar-thumb {
|
|
558
|
-
background-color: #ffc7df;
|
|
559
|
-
border-radius: 7px;
|
|
569
|
+
background-color: var(--novely-scrollbar-thumb-bg-color, #ffc7df);
|
|
570
|
+
border-radius: var(--novely-scrollbar-thumb-border-radius, 7px);
|
|
560
571
|
}
|
|
561
572
|
.saves__list::-webkit-scrollbar-thumb:hover {
|
|
562
|
-
background-color: #ffc6d8;
|
|
573
|
+
background-color: var(--novely-scrollbar-thumb-hover-bg-color, #ffc6d8);
|
|
563
574
|
}
|
|
564
575
|
.saves__list:hover {
|
|
565
|
-
scrollbar-color: #ffc6d8;
|
|
576
|
+
scrollbar-color: var(--novely-scrollbar-thumb-hover-bg-color, #ffc6d8);
|
|
566
577
|
}
|
|
567
578
|
.saves__list--empty {
|
|
568
579
|
display: flex;
|
|
569
580
|
align-items: center;
|
|
570
581
|
user-select: none;
|
|
582
|
+
color: var(--novely-saves-list-empty-color, black);
|
|
571
583
|
}
|
|
572
584
|
.saves__list-item {
|
|
573
585
|
display: flex;
|