Skip to content

Commit 03faaf9

Browse files
committed
exracting svgs from diff viewer
1 parent 3c9f460 commit 03faaf9

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/Frontend/src/components/messages2/DiffViewer.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<script setup lang="ts">
22
import { ref, computed, watch, onMounted, onBeforeUnmount } from "vue";
33
import * as diff from "diff";
4+
import DiffMaximizeIcon from "@/assets/diff-maximize.svg";
5+
import DiffCloseIcon from "@/assets/diff-close.svg";
46
57
// Types needed for the diff viewer
68
interface DiffChange {
@@ -312,9 +314,7 @@ onBeforeUnmount(() => {
312314

313315
<!-- Maximize Button -->
314316
<button v-if="showMaximizeIcon && showMaximizeButton" @click="toggleMaximizeModal" class="maximize-button" title="Maximize diff view">
315-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
316-
<path d="M3 3V9H5V5H9V3H3ZM3 21H9V19H5V15H3V21ZM21 3H15V5H19V9H21V3ZM15 21H21V15H19V19H15V21Z" fill="currentColor" />
317-
</svg>
317+
<img :src="DiffMaximizeIcon" alt="Maximize" width="14" height="14" />
318318
</button>
319319

320320
<!-- Diff content -->
@@ -367,9 +367,7 @@ onBeforeUnmount(() => {
367367
<div class="maximize-modal-toolbar">
368368
<span class="maximize-modal-title">{{ leftTitle }} vs {{ rightTitle }}</span>
369369
<button @click="toggleMaximizeModal" class="maximize-modal-close" title="Close">
370-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
371-
<path d="M18 6L6 18M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
372-
</svg>
370+
<img :src="DiffCloseIcon" alt="Close" width="16" height="16" />
373371
</button>
374372
</div>
375373
<div class="maximize-modal-body">

0 commit comments

Comments
 (0)