Skip to content

Commit 6b39732

Browse files
committed
ui tweaks
1 parent 0ff569c commit 6b39732

10 files changed

Lines changed: 65 additions & 35 deletions

File tree

BlazorDiffusion/Components/Pages/Albums/Album.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</HeadContent>
1818
}
1919

20-
<div id="albums" class="mx-auto px-6 lg:px-8" data-album="@SelectedAlbum.Id">
20+
<div id="albums" class="mx-auto px-2" data-album="@SelectedAlbum.Id">
2121
<div class="my-8 mx-auto max-w-2xl text-center">
2222
<h1 class="max-w-4xl font-display text-4xl font-semibold tracking-tight text-slate-50 sm:text-5xl lg:text-6xl">@SelectedAlbum.Name</h1>
2323
</div>

BlazorDiffusion/Components/Pages/Albums/Index.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@page "/albums.html"
33
@inject UserState UserState
44

5-
<div id="albums" class="mx-auto px-6 lg:px-8">
5+
<div id="albums" class="mx-auto px-2">
66
<div class="my-8 mx-auto max-w-2xl text-center">
77
<h1 class="max-w-4xl font-display text-4xl font-semibold tracking-tight text-slate-50 sm:text-5xl lg:text-6xl">Albums</h1>
88
</div>

BlazorDiffusion/Components/Pages/ArtView.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</a>
9696
</div>
9797

98-
@if (GetArtifactAlbums().Count() > 0)
98+
@if (GetArtifactAlbums().Any())
9999
{
100100
<div class="ml-4 mb-8 text-sm text-gray-600 dark:text-gray-400">
101101
<div class="flex whitespace-nowrap w-24">

BlazorDiffusion/Components/Pages/Create.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PageTitle>Create new Image with Stable Diffusion</PageTitle>
66

7-
<div id="create" class="mx-auto px-6 lg:px-8">
7+
<div id="create" class="mx-auto px-2">
88
<div class="my-8 mx-auto max-w-2xl text-center">
99
<h1 class="max-w-4xl font-display text-4xl font-semibold tracking-tight text-slate-50 sm:text-5xl lg:text-6xl">Create Image</h1>
1010
</div>

BlazorDiffusion/Components/Pages/Favorites.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PageTitle>My Favorites</PageTitle>
66

7-
<div id="favorites" class="mx-auto px-6 lg:px-8">
7+
<div id="favorites" class="mx-auto px-2">
88
<div class="my-8 mx-auto max-w-2xl text-center">
99
<h1 class="max-w-4xl font-display text-4xl font-semibold tracking-tight text-slate-50 sm:text-5xl lg:text-6xl">My Favorites</h1>
1010
</div>

BlazorDiffusion/Components/Pages/Latest.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PageTitle>Latest Images @(Page != null ? $" - page {Page}" : "")</PageTitle>
66

7-
<div id="albums" class="mx-auto px-6 lg:px-8">
7+
<div id="albums" class="mx-auto px-2">
88
<div class="my-8 mx-auto max-w-2xl text-center">
99
<h1 class="max-w-4xl font-display text-4xl font-semibold tracking-tight text-slate-50 sm:text-5xl lg:text-6xl">Latest Images</h1>
1010
</div>

BlazorDiffusion/Components/Pages/Top.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PageTitle>Top Images @(Page != null ? $" - page {Page}" : "")</PageTitle>
66

7-
<div id="albums" class="mx-auto px-6 lg:px-8">
7+
<div id="albums" class="mx-auto px-2">
88
<div class="my-8 mx-auto max-w-2xl text-center">
99
<h1 class="max-w-4xl font-display text-4xl font-semibold tracking-tight text-slate-50 sm:text-5xl lg:text-6xl">Top Images</h1>
1010
</div>

BlazorDiffusion/wwwroot/css/app.css

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,34 @@ select{
13531353
margin-top: auto;
13541354
}
13551355

1356+
.-mt-12 {
1357+
margin-top: -3rem;
1358+
}
1359+
1360+
.ml-6 {
1361+
margin-left: 1.5rem;
1362+
}
1363+
1364+
.-mt-6 {
1365+
margin-top: -1.5rem;
1366+
}
1367+
1368+
.-ml-2 {
1369+
margin-left: -0.5rem;
1370+
}
1371+
1372+
.-mt-9 {
1373+
margin-top: -2.25rem;
1374+
}
1375+
1376+
.-mt-4 {
1377+
margin-top: -1rem;
1378+
}
1379+
1380+
.-mt-7 {
1381+
margin-top: -1.75rem;
1382+
}
1383+
13561384
.block {
13571385
display: block;
13581386
}
@@ -2593,11 +2621,6 @@ select{
25932621
padding-bottom: 3rem;
25942622
}
25952623

2596-
.py-16 {
2597-
padding-top: 4rem;
2598-
padding-bottom: 4rem;
2599-
}
2600-
26012624
.py-2 {
26022625
padding-top: 0.5rem;
26032626
padding-bottom: 0.5rem;
@@ -2640,6 +2663,10 @@ select{
26402663
padding-bottom: 0.375rem;
26412664
}
26422665

2666+
.pb-16 {
2667+
padding-bottom: 4rem;
2668+
}
2669+
26432670
.pb-2 {
26442671
padding-bottom: 0.5rem;
26452672
}
@@ -4682,10 +4709,6 @@ select{
46824709
margin: 0.25rem;
46834710
}
46844711

4685-
.sm\:m-2 {
4686-
margin: 0.5rem;
4687-
}
4688-
46894712
.sm\:-mx-6 {
46904713
margin-left: -1.5rem;
46914714
margin-right: -1.5rem;
@@ -4715,6 +4738,10 @@ select{
47154738
margin-left: -1rem;
47164739
}
47174740

4741+
.sm\:-mt-12 {
4742+
margin-top: -3rem;
4743+
}
4744+
47184745
.sm\:-mt-8 {
47194746
margin-top: -2rem;
47204747
}
@@ -4751,6 +4778,14 @@ select{
47514778
margin-top: 2rem;
47524779
}
47534780

4781+
.sm\:-mt-10 {
4782+
margin-top: -2.5rem;
4783+
}
4784+
4785+
.sm\:-mt-9 {
4786+
margin-top: -2.25rem;
4787+
}
4788+
47544789
.sm\:block {
47554790
display: block;
47564791
}
@@ -4949,10 +4984,6 @@ select{
49494984
padding: 0px;
49504985
}
49514986

4952-
.sm\:p-2 {
4953-
padding: 0.5rem;
4954-
}
4955-
49564987
.sm\:p-6 {
49574988
padding: 1.5rem;
49584989
}
@@ -4982,11 +5013,6 @@ select{
49825013
padding-bottom: 3.5rem;
49835014
}
49845015

4985-
.sm\:py-32 {
4986-
padding-top: 8rem;
4987-
padding-bottom: 8rem;
4988-
}
4989-
49905016
.sm\:pb-0 {
49915017
padding-bottom: 0px;
49925018
}
@@ -4995,6 +5021,10 @@ select{
49955021
padding-bottom: 0.5rem;
49965022
}
49975023

5024+
.sm\:pb-32 {
5025+
padding-bottom: 8rem;
5026+
}
5027+
49985028
.sm\:pb-4 {
49995029
padding-bottom: 1rem;
50005030
}
@@ -5027,6 +5057,10 @@ select{
50275057
padding-top: 0.5rem;
50285058
}
50295059

5060+
.sm\:pt-0\.5 {
5061+
padding-top: 0.125rem;
5062+
}
5063+
50305064
.sm\:text-left {
50315065
text-align: left;
50325066
}
@@ -5206,10 +5240,6 @@ select{
52065240
column-gap: 3rem;
52075241
}
52085242

5209-
.lg\:rounded-xl {
5210-
border-radius: 0.75rem;
5211-
}
5212-
52135243
.lg\:px-8 {
52145244
padding-left: 2rem;
52155245
padding-right: 2rem;

BlazorDiffusion/wwwroot/pages/Favorites.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default {
115115
<div>
116116
<div v-if="user" class="flex mt-3">
117117
<div class="z-10 flex-shrink mr-1 sm:mr-2">
118-
<div class="ml-2 flex flex-col sm:-mt-8 justify-center items-center">
118+
<div class="ml-2 flex flex-col pt-0.5 -mt-8 sm:-mt-10 justify-center items-center">
119119
<div class="mb-2">
120120
<a v-on:click.prevent="navTo({ album: undefined })" href="/favorites">
121121
<svg :class="['h-16 w-16 sm:h-24 sm:w-24', selectedAlbum == null ? 'text-red-600 hover:text-red-400' : 'text-cyan-600 hover:text-cyan-400 cursor-pointer']"
@@ -126,7 +126,7 @@ export default {
126126
</div>
127127
128128
<a v-for="album in store.userAlbums" v-on:click.prevent="navTo({ album: album.id })" :href="'/favorites?album='+album.id">
129-
<div :class="['sm:mt-2 hover:opacity-80 cursor-pointer h-16 w-16 sm:h-24 sm:w-24 overflow-hidden rounded sm:rounded-lg border-2',
129+
<div :class="['sm:mt-2 hover:opacity-80 cursor-pointer h-16 w-16 sm:h-24 sm:w-24 overflow-hidden border',
130130
selectedAlbum?.id === album.id ? 'border-yellow-400' : 'border-transparent']">
131131
<artifact-image :artifact="store.albumCover(album)" class="flex w-full h-full" image-class="object-cover"></artifact-image>
132132
</div>

BlazorDiffusion/wwwroot/pages/Index.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { SearchArtifacts, AnonData, QueryArtifacts } from "dtos.mjs"
55

66
export default {
77
template: `
8-
<div class="mx-auto px-6 lg:px-8">
8+
<div class="mx-auto px-2">
99
<div class="mb-10 mx-auto max-w-2xl text-center">
1010
<form v-on:submit.prevent="update" class="mt-4 sm:mt-8 text-lg mx-auto max-w-lg flex justify-center">
1111
<text-input id="query" type="search" v-model="request.query" class="bg-transparent h-8 w-96" label="" placeholder="Search existing images"></text-input>
@@ -15,10 +15,10 @@ export default {
1515
<div class="flex">
1616
<div class="flex flex-col flex-shrink">
1717
<div class="z-10 flex-shrink sm:mr-2">
18-
<div v-if="topAlbums.length" :key="renderKey" class="flex flex-col -ml-6 sm:-ml-4 -mt-5 sm:-mt-8 pt-1 sm:pt-2 justify-center items-center">
18+
<div v-if="topAlbums.length" :key="renderKey" class="flex flex-col -mt-5 sm:-mt-10 pt-1 sm:pt-2 justify-center items-center">
1919
<div class="-mt-1 sm:mt-0 text-xs sm:text-sm text-gray-500 whitespace-nowrap w-16 sm:w-24 text-center pb-1">top albums</div>
2020
<a :key="album.slug" v-for="album in topAlbums" :href="'/albums/' + album.slug">
21-
<div :class="['sm:mt-2 hover:opacity-80 cursor-pointer h-16 w-16 sm:h-24 sm:w-24 overflow-hidden rounded sm:rounded-lg border-2',
21+
<div :class="['sm:mt-2 hover:opacity-80 cursor-pointer h-16 w-16 sm:h-24 sm:w-24 overflow-hidden',
2222
album === album.albumRef ? 'border-yellow-400' : 'border-transparent']">
2323
<artifact-image :artifact="store.albumCover(album)" class="flex w-full h-full" image-class="object-cover"></artifact-image>
2424
</div>
@@ -28,7 +28,7 @@ export default {
2828
</div>
2929
</div>
3030
<div v-cloak>
31-
<h3 v-if="title" class="text-xl absolute -mt-8 ml-4">{{title}}</h3>
31+
<h3 v-if="title" class="text-xl absolute -mt-9">{{title}}</h3>
3232
<artifact-gallery ref="gallery" :results="results" v-on:contextmenu="artifactMenu=$event" v-on:open="openDialog">
3333
<template #icons="artifact">
3434
<div class="p-2 relative w-full h-full overflow-hidden flex flex-col justify-between overflow-hidden">

0 commit comments

Comments
 (0)