get rid of classes.

This commit is contained in:
fiatjaf
2024-02-13 17:01:41 -03:00
parent 88663ce004
commit 2c84ca0dd7
4 changed files with 2 additions and 8 deletions

View File

@@ -24,5 +24,4 @@
margin: 1cm 3cm;
}
}
}

View File

@@ -23,11 +23,6 @@ templ headCommonTemplate(params HeadParams) {
} else {
<link rel="stylesheet" type="text/css" href={ "/njump/static/tailwind-bundle.min.css?t=" + compileTimeTs }/>
}
<style>
.note { line-height: 1em; }
.note img.emoji { height: 1.2em; display: inline; margin: 0px; }
@media print { @page { margin: 2cm 3cm; } }
</style>
<meta name="theme-color" content="#e42a6d"/>
if params.NaddrNaked != "" {
<link rel="canonical" href={ "https://njump.me/" + params.NaddrNaked }/>

View File

@@ -19,7 +19,7 @@ templ noteTemplate(params NotePageParams) {
</h1>
}
<!-- main content -->
<div dir="auto" class="note">
<div dir="auto" class="leading-4">
@templ.Raw(params.Content)
</div>
}

View File

@@ -361,7 +361,7 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
if len(tag) >= 3 && isValidShortcode(tag[1]) {
u, err := url.Parse(tag[2])
if err == nil {
content = strings.ReplaceAll(content, ":"+tag[1]+":", `<img class="emoji" src="`+u.String()+`"/>`)
content = strings.ReplaceAll(content, ":"+tag[1]+":", `<img class="inline leading-5 m-0" src="`+u.String()+`"/>`)
}
}
}