Skip to content

Commit 3c2faee

Browse files
committed
fix add datapacks button on other browsers
1 parent 7bf5cbb commit 3c2faee

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<div class="button-container">
2828
<button type="button">Ok! Let me configure</button>
2929
</div>
30-
</div>
3130
</dialog>
3231

3332
<div class="header">
@@ -95,7 +94,19 @@
9594
accept=".zip,.jar"
9695
aria-label="Upload a datapack file"
9796
multiple />
98-
<span class="upload-button"></span>
97+
<span class="upload-button" aria-hidden="true"
98+
><svg
99+
xmlns="http://www.w3.org/2000/svg"
100+
width="1.2rem"
101+
height="1.2rem"
102+
viewBox="0 0 640 640">
103+
<!--!Font Awesome Free v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
104+
<path
105+
fill="white"
106+
d="M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z" />
107+
</svg>
108+
Add datapack(s)...</span
109+
>
99110
</label>
100111

101112
<!---------- DATAPACK LIST ---------->

style.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,17 +152,6 @@ input[type="range"]::-moz-range-thumb {
152152
justify-content: center;
153153
gap: 0.3em;
154154
}
155-
156-
.upload-button::before {
157-
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1.2rem" height="1.2rem" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="white" d="M352 128C352 110.3 337.7 96 320 96C302.3 96 288 110.3 288 128L288 288L128 288C110.3 288 96 302.3 96 320C96 337.7 110.3 352 128 352L288 352L288 512C288 529.7 302.3 544 320 544C337.7 544 352 529.7 352 512L352 352L512 352C529.7 352 544 337.7 544 320C544 302.3 529.7 288 512 288L352 288L352 128z"/></svg>');
158-
display: flex;
159-
align-items: center;
160-
justify-content: center;
161-
}
162-
163-
.upload-button::after {
164-
content: "Add datapack(s)...";
165-
}
166155
}
167156

168157
.work_area {

0 commit comments

Comments
 (0)