Renovamen / vuepress-theme-gungnir

A blog theme for VuePress 2.
https://v2-vuepress-theme-gungnir.vercel.app
Apache License 2.0
362 stars 79 forks source link

perf: pager component display logical optimization #67

Closed rainbowatcher closed 2 years ago

rainbowatcher commented 2 years ago

Related ISSUE

Type Of Change

Clear Describe

pager component display logical optimization

Description

  1. according the habit to most people, put button "previous" to left and the button "next" to right.
  2. use grid style on Pager component.
  3. add a little animation to these button.
  4. post title inside the button limited to 2 lines.
  5. add markdown sub & sup syntax support.
  6. add the docs about.

Test Case

Scrrenshots

This is what the Pager component display in my blog. When the title of one of the buttons occupies two lines and the other only occupies one line, the display is abnormal.

before-blog2

and after will be like this

longtitle-mobile

and below is the screenshot of pc and pad

longtitle-pc longtitle-pad

the two markdown file is for test.

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
v2-vuepress-theme-gungnir ✅ Ready (Inspect) Visit Preview May 27, 2022 at 6:48AM (UTC)
vuepress-theme-gungnir ❌ Failed (Inspect) May 27, 2022 at 6:48AM (UTC)
rainbowatcher commented 2 years ago

@Renovamen 辛苦帮我review一下🍺