@dataloop-ai/components 0.20.59 → 0.20.61-cdn-fix.0
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
|
@@ -325,7 +325,7 @@ export default defineComponent({
|
|
|
325
325
|
alignItems: 'center',
|
|
326
326
|
borderRadius: '2px',
|
|
327
327
|
border: this.collapseBorder,
|
|
328
|
-
background: 'var(--dl-color-
|
|
328
|
+
background: 'var(--dl-color-bg, #30363D)',
|
|
329
329
|
boxShadow:
|
|
330
330
|
'0px 4px 4px 0px var(--dl-color-shadow, rgba(27, 30, 34, 0.24))'
|
|
331
331
|
}
|
|
@@ -176,9 +176,13 @@ export default defineComponent({
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
try {
|
|
179
|
+
const publicPath =
|
|
180
|
+
process.env.PUBLIC_PATH === 'true'
|
|
181
|
+
? '__PUBLIC_PATH'
|
|
182
|
+
: ''
|
|
179
183
|
svgElement.src = svgSource.value
|
|
180
184
|
? `${svgSource.value}/${cleanedIconName.value}.svg`
|
|
181
|
-
:
|
|
185
|
+
: `${publicPath}/icons/assets/${cleanedIconName.value}.svg`
|
|
182
186
|
} catch (e) {
|
|
183
187
|
reject(e)
|
|
184
188
|
}
|