Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Long page names shrink previous/next arrows #83

Open
3 tasks done
blakegearin opened this issue Apr 13, 2022 · 1 comment
Open
3 tasks done

[BUG] Long page names shrink previous/next arrows #83

blakegearin opened this issue Apr 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@blakegearin
Copy link
Contributor

I have checked all the prerequisites below and I'm yet experiencing a problem

  • Read the README.md
  • Have the extended version of Hugo installed
  • Used the exampleSite's config.toml as a reference

Describe the bug

As the length of a page name increases, the next/previous arrow icons for that page shrink. They also change height, with the previous page arrow going downward and the next page arrow going upward.

This can be observed on the live example site.

image

image

Desktop (please complete the following information):

  • OS: macOS 12.2.1
  • Browser: Firefox 99.0b5
@blakegearin blakegearin added the bug Something isn't working label Apr 13, 2022
@blakegearin
Copy link
Contributor Author

blakegearin commented Apr 13, 2022

I think this solves the problem, but is not very elegant, specifically the height part.

.prev .pager_label
  padding-left: 1.5rem

.next .pager_label
  padding-right: 1.5rem

&::before, &::after
  background-image: var(--nextIcon)
  position: absolute
  width: 1rem
  height: 40%
  background-size: 100%
  background-repeat: no-repeat
  transform-origin: 50% 50%
  &::before
    left: 1rem
  &::after
    right: 1rem

This also changes the position of the arrows from beside the text to the far sides.

Before:
image

After:
image

@onweru onweru self-assigned this Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants