Skip to content

Commit 4a30324

Browse files
committed
Add label of image model used
1 parent 97f05eb commit 4a30324

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

AiServer/wwwroot/css/app.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,10 @@ select{
10381038
grid-row-start: 1;
10391039
}
10401040

1041+
.float-right {
1042+
float: right;
1043+
}
1044+
10411045
.-m-2 {
10421046
margin: -0.5rem;
10431047
}
@@ -1620,10 +1624,6 @@ select{
16201624
min-width: 100%;
16211625
}
16221626

1623-
.max-w-10 {
1624-
max-width: 2.5rem;
1625-
}
1626-
16271627
.max-w-2xl {
16281628
max-width: 42rem;
16291629
}
@@ -1668,10 +1668,6 @@ select{
16681668
max-width: 20rem;
16691669
}
16701670

1671-
.max-w-96 {
1672-
max-width: 24rem;
1673-
}
1674-
16751671
.flex-1 {
16761672
flex: 1 1 0%;
16771673
}
@@ -3479,6 +3475,10 @@ select{
34793475
--tw-ring-color: rgb(0 0 0 / 0.05);
34803476
}
34813477

3478+
.ring-blue-700\/10 {
3479+
--tw-ring-color: rgb(29 78 216 / 0.1);
3480+
}
3481+
34823482
.ring-gray-200 {
34833483
--tw-ring-opacity: 1;
34843484
--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1));

AiServer/wwwroot/mjs/components/TextToImage.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export default {
8888
<div class="ml-1 invisible group-hover:visible">discard</div>
8989
<svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M12 12h2v12h-2zm6 0h2v12h-2z"></path><path fill="currentColor" d="M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20zm4-26h8v2h-8z"></path></svg>
9090
</div>
91+
</div>
92+
<div v-if="result.request.model" class="float-right">
93+
<span class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-inset ring-blue-700/10">{{result.request.model}}</span>
9194
</div>
9295
9396
<ArtifactGallery :results="toArtifacts(result)">

0 commit comments

Comments
 (0)