Skip to content

Commit 35ea90b

Browse files
A bit more styling
1 parent fe3010e commit 35ea90b

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

frontend/public/index.css

+10-6
Original file line numberDiff line numberDiff line change
@@ -2939,6 +2939,10 @@ input.tab:checked + .tab-content,
29392939
margin: 0.5rem;
29402940
}
29412941

2942+
.mb-1 {
2943+
margin-bottom: 0.25rem;
2944+
}
2945+
29422946
.mb-5 {
29432947
margin-bottom: 1.25rem;
29442948
}
@@ -3259,16 +3263,16 @@ input.tab:checked + .tab-content,
32593263
padding-bottom: 0.5rem;
32603264
}
32613265

3262-
.pb-1 {
3263-
padding-bottom: 0.25rem;
3264-
}
3265-
32663266
.pb-2 {
32673267
padding-bottom: 0.5rem;
32683268
}
32693269

3270-
.pt-1 {
3271-
padding-top: 0.25rem;
3270+
.pt-0 {
3271+
padding-top: 0px;
3272+
}
3273+
3274+
.pt-2 {
3275+
padding-top: 0.5rem;
32723276
}
32733277

32743278
.text-left {

v2/library/web/comp/edit.templ

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import "github.com/eduardooliveira/stLib/v2/utils"
44

55
templ Edit(m *EditModel) {
66
<div
7-
class="flex flex-col w-96 bg-base-200 rounded-box p-2"
7+
class="flex flex-col w-96 bg-base-200 rounded-box p-2 pt-0"
88
:class="tab == 'edit' ? '' : 'hidden'"
99
hx-get="/lib/edit"
1010
hx-trigger="tab-edit from:body"
1111
hx-vals="js:{assetID:event.detail.assetID}"
1212
>
1313
if m!=nil {
14-
<h1>Edit</h1>
14+
<a class="btn btn-ghost text-xl">Edit</a>
1515
<form hx-post="/lib/edit" hx-vals="unset">
1616
<input type="hidden" name="id" value={ m.Asset.ID }/>
1717
<div>

v2/library/web/comp/view3d.templ

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ templ View3D() {
1111
class="flex flex-col w-96 bg-base-200 rounded-box p-2"
1212
:class="tab == 'viewer' ? '' : 'hidden'"
1313
>
14-
<p>3D Viewer</p>
14+
<a class="btn btn-ghost text-xl">3D Viewer</a>
1515
<div
1616
class="h-72 viewer-container bg-slate-400"
1717
x-ref="viewerContainer"
1818
hx-preserve="true"
1919
></div>
2020
<div
21-
class="model-list flex flex-col pt-1"
21+
class="model-list flex flex-col pt-2"
2222
hx-get="/lib/viewer/list"
2323
hx-vals="js:{assetID:event.detail.assetID}"
2424
hx-trigger="viewer-model-list-add from:body"
@@ -28,9 +28,9 @@ templ View3D() {
2828
}
2929

3030
templ ViewerAssetElement(asset entities.Asset) {
31-
<div class="flex pb-1 bg-base-300">
32-
<div class="avatar">
33-
<div class="w-12 h-12 rounded">
31+
<div class="flex mb-1 flex-row h-12 bg-base-300 rounded-lg">
32+
<div class="avatar flex-none w-12">
33+
<div class="rounded">
3434
<img
3535
src={ fmt.Sprintf("/lib/%s/file", utils.VoZ(asset.Thumbnail)) }
3636
alt="Tailwind-CSS-Avatar-component"
@@ -43,7 +43,7 @@ templ ViewerAssetElement(asset entities.Asset) {
4343
</div>
4444
<div class="">
4545
<button
46-
class="btn btn-square w-12 h-12"
46+
class="btn btn-square w-12 h-12 btn-ghost"
4747
type="button"
4848
name="delete"
4949
@click={ fmt.Sprintf("deleteModel($el,'%s')", asset.ID) }

0 commit comments

Comments
 (0)