🩹 Improve scroll to top link alignment

pull/231/head
James Panther 2022-06-25 13:04:41 +10:00
parent 31c7cca31d
commit f007a1f294
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Search link does not appear in header if main menu has no items to display - Search link does not appear in header if main menu has no items to display
- Search only returns results in the primary language when multiple languages are available ([#229](https://github.com/jpanther/congo/issues/229)) - Search only returns results in the primary language when multiple languages are available ([#229](https://github.com/jpanther/congo/issues/229))
- Scroll to top misaligned with the footer at small viewport heights
- Link to homepage would be incorrect in some deployments if `baseURL` contained sub-directories in the path - Link to homepage would be incorrect in some deployments if `baseURL` contained sub-directories in the path
## [2.2.3] - 2022-06-22 ## [2.2.3] - 2022-06-22

View File

@ -1672,8 +1672,8 @@ body button {
left: 0px; left: 0px;
} }
.top-\[110vh\] { .top-\[100vh\] {
top: 110vh; top: 100vh;
} }
.bottom-0 { .bottom-0 {

View File

@ -31,7 +31,7 @@
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
{{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }} {{ if and (.Site.Params.showScrollToTop | default true) (gt .WordCount 200) }}
<div <div
class="absolute top-[110vh] ltr:right-0 rtl:left-0 w-12 pointer-events-none bottom-0" class="absolute top-[100vh] ltr:right-0 rtl:left-0 w-12 pointer-events-none bottom-0"
> >
<a <a
href="#the-top" href="#the-top"