Skip to content

Commit 270e7a1

Browse files
committed
ui fixes
1 parent fb5c75a commit 270e7a1

4 files changed

Lines changed: 51 additions & 15 deletions

File tree

BlazorDiffusion/Pages/Albums.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<div @key=@album.Id>
2424
<NavLink href=@($"/?album={album.AlbumRef}&source={AppSource.Albums}")
2525
class=@ClassNames("overflow-hidden flex justify-center")>
26-
<div class="relative sm:p-2 flex flex-col cursor-pointer items-center" style=@($"width:512px;height:512px")>
26+
<div class="relative sm:p-2 flex flex-col cursor-pointer items-center w-32 h-32 sm:w-64 sm:h-64 xl:w-96 xl:h-96 2xl:w-[512px] 2xl:h-[512px]">
2727
<ArtifactImage Artifact="artifact" LazyLoad="true"
2828
class=@ClassNames("flex rounded sm:rounded-xl w-full h-full") ImageClass="object-cover" />
2929

BlazorDiffusion/Pages/Create.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
var artifact = Creative.Artifacts?.FirstOrDefault(x => x.Id == View);
324324
if (artifact != null)
325325
{
326-
<SlideOver @ref="SlideOver" Done=@(() => NavigationManager.NavigateTo($"/create?id={Creative.Id}"))
326+
<SlideOver @ref="SlideOver" SlideOverClass="relative z-20" Done=@(() => NavigationManager.NavigateTo($"/create?id={Creative.Id}"))
327327
ShowTitlebar="false" ShowFooter="false">
328328

329329
<div class=@CssDefaults.SlideOver.TitlebarClass>

BlazorDiffusion/Shared/ArtifactGallery.razor

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

140140
@if (Creative != null && Selected != null)
141141
{
142-
<SlideOver Done=@(_ => navTo()) ShowTitlebar="false" ShowFooter="false">
142+
<SlideOver SlideOverClass="relative z-20" Done=@(_ => navTo()) ShowTitlebar="false" ShowFooter="false">
143143
@*Guard against NRE when navigating away whilst SlideOver is open*@
144144
@if (Creative != null && Selected != null)
145145
{

BlazorDiffusion/wwwroot/css/app.css

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,10 @@ input[data-autocompleted] {
13651365
height: 0.5rem;
13661366
}
13671367

1368+
.h-32 {
1369+
height: 8rem;
1370+
}
1371+
13681372
.h-full {
13691373
height: 100%;
13701374
}
@@ -1417,10 +1421,6 @@ input[data-autocompleted] {
14171421
height: 5rem;
14181422
}
14191423

1420-
.h-32 {
1421-
height: 8rem;
1422-
}
1423-
14241424
.max-h-24 {
14251425
max-height: 6rem;
14261426
}
@@ -1445,6 +1445,10 @@ input[data-autocompleted] {
14451445
width: 100%;
14461446
}
14471447

1448+
.w-32 {
1449+
width: 8rem;
1450+
}
1451+
14481452
.w-7 {
14491453
width: 1.75rem;
14501454
}
@@ -1533,10 +1537,6 @@ input[data-autocompleted] {
15331537
width: 5rem;
15341538
}
15351539

1536-
.w-32 {
1537-
width: 8rem;
1538-
}
1539-
15401540
.w-screen {
15411541
width: 100vw;
15421542
}
@@ -4034,6 +4034,10 @@ input[data-autocompleted] {
40344034
display: none;
40354035
}
40364036

4037+
.sm\:h-96 {
4038+
height: 24rem;
4039+
}
4040+
40374041
.sm\:h-24 {
40384042
height: 6rem;
40394043
}
@@ -4046,10 +4050,18 @@ input[data-autocompleted] {
40464050
height: 100vh;
40474051
}
40484052

4053+
.sm\:h-64 {
4054+
height: 16rem;
4055+
}
4056+
40494057
.sm\:w-1\/3 {
40504058
width: 33.333333%;
40514059
}
40524060

4061+
.sm\:w-96 {
4062+
width: 24rem;
4063+
}
4064+
40534065
.sm\:w-\[600px\] {
40544066
width: 600px;
40554067
}
@@ -4066,14 +4078,14 @@ input[data-autocompleted] {
40664078
width: 1.5rem;
40674079
}
40684080

4069-
.sm\:w-96 {
4070-
width: 24rem;
4071-
}
4072-
40734081
.sm\:w-full {
40744082
width: 100%;
40754083
}
40764084

4085+
.sm\:w-64 {
4086+
width: 16rem;
4087+
}
4088+
40774089
.sm\:max-w-xs {
40784090
max-width: 20rem;
40794091
}
@@ -4474,6 +4486,22 @@ input[data-autocompleted] {
44744486
display: table-cell;
44754487
}
44764488

4489+
.xl\:h-\[512px\] {
4490+
height: 512px;
4491+
}
4492+
4493+
.xl\:h-96 {
4494+
height: 24rem;
4495+
}
4496+
4497+
.xl\:w-\[512px\] {
4498+
width: 512px;
4499+
}
4500+
4501+
.xl\:w-96 {
4502+
width: 24rem;
4503+
}
4504+
44774505
.xl\:max-w-3xl {
44784506
max-width: 48rem;
44794507
}
@@ -4497,6 +4525,14 @@ input[data-autocompleted] {
44974525
display: table-cell;
44984526
}
44994527

4528+
.\32xl\:h-\[512px\] {
4529+
height: 512px;
4530+
}
4531+
4532+
.\32xl\:w-\[512px\] {
4533+
width: 512px;
4534+
}
4535+
45004536
.\32xl\:max-w-screen-xl {
45014537
max-width: 1280px;
45024538
}

0 commit comments

Comments
 (0)