Skip to content

Commit a1b2df3

Browse files
committed
fix: svg elements remove header info
1 parent bafa14e commit a1b2df3

4 files changed

Lines changed: 4 additions & 29 deletions

File tree

components/ArrowDraw.vue

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,7 @@ const colorscheme = computed(() => {
1818
</script>
1919

2020
<template>
21-
<svg
22-
version="1.1"
23-
id="Layer_1"
24-
xmlns="http://www.w3.org/2000/svg"
25-
xmlns:xlink="http://www.w3.org/1999/xlink"
26-
x="0px"
27-
y="0px"
28-
viewBox="0 0 196 73"
29-
style="enable-background: new 0 0 196 73"
30-
xml:space="preserve"
31-
:width="width"
32-
>
21+
<svg viewBox="0 0 196 73" :width="width">
3322
<path
3423
class="st0"
3524
:class="colorscheme"

components/ArrowHeads.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ const colorscheme = computed(() => {
1616
})
1717
</script>
1818
<template>
19-
<svg
20-
id="Layer_1"
21-
data-name="Layer 1"
22-
xmlns="http://www.w3.org/2000/svg"
23-
version="1.1"
24-
viewBox="0 0 356 204"
25-
:width="width"
26-
>
19+
<svg viewBox="0 0 356 204" :width="width">
2720
<path
2821
class="cls-1"
2922
:class="colorscheme"

components/Box.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<script setup>
22
import { computed } from 'vue'
3-
import { resolveColor } from '../layoutHelper'
43
const props = defineProps({
54
shape: {
65
type: String,
7-
default: 's-s-2-100',
6+
default: 's-s-2-10',
87
},
98
color: {
109
type: String,

components/Thumb.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,7 @@ const thumbRotation = computed(() => {
2929
</script>
3030

3131
<template>
32-
<svg
33-
xmlns="http://www.w3.org/2000/svg"
34-
version="1.1"
35-
viewBox="0 0 800 800"
36-
:width="width"
37-
:style="{ transform: thumbRotation }"
38-
>
32+
<svg viewBox="0 0 800 800" :width="width" :style="{ transform: thumbRotation }">
3933
<defs></defs>
4034
<g id="bg">
4135
<polygon

0 commit comments

Comments
 (0)