]> Repos - mime-chat/commitdiff
add viewBox to messageRenderer
authorriqo <hernandeze2@xavier.edu>
Sun, 15 Nov 2020 16:46:26 +0000 (10:46 -0600)
committerriqo <hernandeze2@xavier.edu>
Sun, 15 Nov 2020 16:46:26 +0000 (10:46 -0600)
src/components/AI/index.vue
src/components/UI/UIDetails/messageRenderer.vue

index d81a08f0b5f61b9a60c6094c9ef1d951aeda9439..a4b36ed482286d30bc8c4e2dc6c4ac856a62aeea 100644 (file)
@@ -9,7 +9,7 @@
       gradientUnits="objectBoundingBox"
     >
       <stop offset="0" stop-color="#fff" />
-      <stop id="sound" offset="1" stop-color="rgb(230, 230, 23)" />
+      <stop id="sound" offset="1" stop-color="rgb(230, 230, 230)" />
     </radialGradient>
     <filter id="Rectangle_410" x="0" y="0" width="380" height="530" filterUnits="userSpaceOnUse">
       <feOffset dy="3" input="SourceAlpha" />
@@ -94,8 +94,7 @@ export default defineComponent({
       if (zeroed > 0) {
         radius.value = zeroed;
       }
-      const amplified = zeroed;
-      if (payload.speech === think) {
+      if (payload.speech === think.value) {
         return;
       } else {
         think.value = payload.speech;
index c3f779578359e9b34eb5711da9f3b236d5aa1b9a..0b9cce37774365293d3a70a382b9bd1c4a5ee3b1 100644 (file)
@@ -1,4 +1,10 @@
 <template>
+<svg
+  version="1.1"
+  xmlns="http://www.w3.org/2000/svg"
+  xmlns:xlink="http://www.w3.org/1999/xlink"
+  viewBox="0 0 350 500"
+>
   <g id="messageRenderer">
     <g
       v-for="(item, index) in renderArr"
@@ -17,6 +23,7 @@
       </transition>
     </g>
   </g>
+</svg>
 </template>
 
 <script lang="ts">