fix minimized comment padding, loadmore end jerk

This commit is contained in:
Ryan Stafford 2023-07-07 13:10:52 -04:00
parent 4fcfda174d
commit 48d12530fe
4 changed files with 7 additions and 8 deletions

View file

@ -83,7 +83,7 @@ summary {
max-width: 840px;
}
.comment.hidden .score {
display: none;
visibility: hidden;
}
.score form.link-btn input {
display: block;
@ -264,7 +264,6 @@ summary {
}
.comment.hidden {
margin-bottom: 10px;
padding-left: 26px;
}
.comment.hidden .meta a {
color: gray;
@ -379,7 +378,7 @@ form.nsfw div {
text-decoration: none;
color: #369;
}
#loadmore {
#loadmore, #end {
visibility: hidden;
margin: 10px 0px;
}

View file

@ -105,7 +105,7 @@ function loadMore(e) {
e.target.outerHTML = res + '<input id="loadmore" type="submit" data-page="'+(parseInt(page)+1)+'" value="load more" onclick="loadMore(event)">'
}
else {
e.target.outerHTML = ""
e.target.outerHTML = '<input id="end" type="submit" value="" disabled>'
}
})
return false;

View file

@ -2,7 +2,7 @@
<head>
<title>{{ if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
<link rel="stylesheet" href="/_/static/style.css?v=11">
<link rel="stylesheet" href="/_/static/style.css?v=12">
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body {{ if .Dark }}class="dark"{{end}}>
@ -55,6 +55,6 @@
{{ template "sidebar.html" . }}
</main>
{{ end }}
<script src="/_/static/utils.js?v=5"></script>
<script src="/_/static/utils.js?v=6"></script>
</body>
</html>

View file

@ -3,7 +3,7 @@
<title>{{if and .Posts .PostID }}{{ (index .Posts 0).Post.Name}} : {{.CommunityName}}{{else if and .Community (ne .Community.CommunityView.Community.Title "")}}{{.Community.CommunityView.Community.Title}}{{else if ne .CommunityName ""}}/c/{{.CommunityName}}{{ else if .User}}overview for {{.User.PersonView.Person.Name}}{{else}}{{ host .Host }}{{end}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/{{.Host}}/icon.jpg">
<link rel="stylesheet" href="/_/static/style.css?v=11">
<link rel="stylesheet" href="/_/static/style.css?v=12">
</head>
<body{{ if .Dark }} class="dark"{{end}}>
<noscript>
@ -127,7 +127,7 @@
<input id="loadmore" type="submit" value="load more" onclick="loadMore(event)" data-page="2">
{{ end }}
<script src="/_/static/utils.js?v=5"></script>
<script src="/_/static/utils.js?v=6"></script>
{{ template "sidebar.html" . }}
</main>
{{ end }}