From 63241ea27b60620f36e60f1d5d163021b8923959 Mon Sep 17 00:00:00 2001 From: Code by Ben Date: Tue, 17 Sep 2024 09:30:44 +1000 Subject: [PATCH] more layout fixes. --- go.mod | 2 +- go.sum | 4 ++-- view/app/artifactfile.tmpl | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 5b0149e0..51b0bcdd 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.22.7 require ( github.com/Defacto2/archive v1.0.2 - github.com/Defacto2/helper v1.1.1 + github.com/Defacto2/helper v1.1.2 github.com/Defacto2/magicnumber v1.0.1 github.com/Defacto2/releaser v1.0.4 github.com/caarlos0/env/v11 v11.2.2 diff --git a/go.sum b/go.sum index 556684dd..4be09fd0 100644 --- a/go.sum +++ b/go.sum @@ -71,8 +71,8 @@ github.com/DATA-DOG/go-sqlmock v1.4.1/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/Defacto2/archive v1.0.2 h1:kibNK3ZFoB87XIeDolxQ6uDbdCnBvDNygJtgngE3prM= github.com/Defacto2/archive v1.0.2/go.mod h1:0/aa1BwDOBp4d87R/N33Lcr3+WzELv041wunK8R5A5c= -github.com/Defacto2/helper v1.1.1 h1:wu8ynKF4ZXruTZNrDumzPVyXxFwhCvtWlsdimPNSXXc= -github.com/Defacto2/helper v1.1.1/go.mod h1:vtHe6R1Pl3YsxsqXe/UZldvNx1n1Y6dM1JUL9Uczr6g= +github.com/Defacto2/helper v1.1.2 h1:HVJnWI9a0nA7vOcfO3BZTSPGNftNS678wf6daMrjbE0= +github.com/Defacto2/helper v1.1.2/go.mod h1:IikMmXvNy3uOcLk4/cEi9mb+xcx8AHPsSmVGd8SKpB0= github.com/Defacto2/magicnumber v1.0.1 h1:UmiBUrYwTk3NPR1lGaaQ3Js+3YllBRf9XxSKInE3Da4= github.com/Defacto2/magicnumber v1.0.1/go.mod h1:SIr4UUO0htkx89FNTdUIpuCbuZqW9uYC5spvWl9bBtk= github.com/Defacto2/releaser v1.0.4 h1:dM7epo3Rk+l2NAH4/dMHzo9QCIC6VejhptlhPUtfg3U= diff --git a/view/app/artifactfile.tmpl b/view/app/artifactfile.tmpl index b0129e7c..21232124 100644 --- a/view/app/artifactfile.tmpl +++ b/view/app/artifactfile.tmpl @@ -114,7 +114,7 @@ hx-encoding="multipart/form-data" hx-post="/editor/upload/file" hx-target="#artifact-editor-dl-feedback" - {{- if ne $notFound $statSizeB}}hx-confirm="OK, to replace the existing artifact file download on the server?"{{end}} + {{- if ne $notFound $statSizeB}} hx-confirm="OK, to replace the existing artifact file download on the server?"{{end}} hx-validate="true"> @@ -284,6 +284,8 @@ {{- /* Readme UI */}} + {{- /* Be careful about the dynamic HTML elements here, + as they can break the modal rendering, disabling all the Editor UI! */ -}}
@@ -291,8 +293,6 @@ README
- {{- /* be careful about the dynamic HTML elements here, - as they can break the modal rendering, disabling all the Editor UI! */ -}} {{- if eq (len .modAssetExtra) 0}}
No extras in use
{{- else}} @@ -309,8 +309,8 @@ hx-target="#editor-copy-readme-result" hx-patch="/editor/readme/copy/{{$unid}}/{{$modReadmeSuggest | urlEncode }}"> Use guessed README file -
{{$modReadmeSuggest}} -
+
  › {{$modReadmeSuggest}} +
{{- end}}