Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 11, 2024
1 parent bb86b7f commit f39fe8b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions VisualQnA/ui/svelte/src/lib/modules/chat/ChatMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
<div class="group relative flex items-start">
<div class="flex flex-col items-start">
<img src={msg.imgSrc} alt="Uploaded Image" class="m-2 max-w-28 max-h-28" />

<p
class="xl:max-w-[65vw] max-w-[60vw] items-start whitespace-pre-line break-keep text-[0.8rem] leading-5 sm:max-w-[50rem]"
>
{@html msg.content}
</p>
</div>
</div>
</div>
</div>
{#if time}
<div>
Expand Down
11 changes: 7 additions & 4 deletions VisualQnA/ui/svelte/src/lib/modules/upload/imagePrompt.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<!--
Copyright (C) 2024 Intel Corporation
SPDX-License-Identifier: Apache-2.0
-->

<script>
import { createEventDispatcher } from "svelte";
import extreme_ironing from '$lib/assets/imageData/extreme_ironing.jpg';
import waterview from '$lib/assets/imageData/waterview.jpg';
import { base64ImageStore } from "$lib/shared/stores/common/Store";
let dispatch = createEventDispatcher();
let dispatch = createEventDispatcher();
let images = [
{
Expand Down Expand Up @@ -32,7 +37,7 @@
}
async function handleImageClick() {
async function handleImageClick() {
const imgUrl = images[currentIndex].imgurl;
const base64Data = await convertImageToBase64(imgUrl);
const currentPrompt = images[currentIndex].prompt;
Expand Down Expand Up @@ -90,5 +95,3 @@
object-fit: cover;
}
</style>


2 changes: 1 addition & 1 deletion VisualQnA/ui/svelte/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
/>
{/each}
</Scrollbar>

</div>
<!-- gallery -->
</div>
Expand Down

0 comments on commit f39fe8b

Please sign in to comment.