mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 11:44:34 +01:00
get rid of classes.
This commit is contained in:
@@ -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 }/>
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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()+`"/>`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user