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

请求优化友链站点图像(矩形)显示效果 #553

Closed
5 of 6 tasks
WoadZS opened this issue Oct 15, 2017 · 2 comments
Closed
5 of 6 tasks

请求优化友链站点图像(矩形)显示效果 #553

WoadZS opened this issue Oct 15, 2017 · 2 comments

Comments

@WoadZS
Copy link

WoadZS commented Oct 15, 2017

I certify that I have first consulted (check all with "x")

我确认我已经查看了 (使用 "x" 选择)


I'm submitting a (check one with "x")

我正在申请 (使用 "x" 选择)

  • bug report | 反馈一个 bug
  • feature request | 申请添加新的特性或功能
  • support request | 请求技术支持

主题 Material Isolation
版本 1.5

问题所在:友链独立页面
问题描述:友链各站点图标是以 width 为基准设置的 72 px
这会造成高比宽小的矩形图片显示效果不佳。

举例:
@neoFelhz 的友链 Avatar 图像为例:

原图大小 275*256 px, 非正方形图标
在默认设置下,此图片的相关 HTML 代码为:

<img src="https://i.v2ex.co/Q4661K0b.png" alt="neoFelhz" width="72px">

显示效果是:
_20171015125406
图片下部有残缺,但将代码中的 width 更改为 height, 以图像高度作为基准,显示效果就正常了:

<img src="https://i.v2ex.co/Q4661K0b.png" alt="neoFelhz" height="72px">

_20171015125720

@neoFelhz
Copy link
Collaborator

I will check it.

@neoFelhz
Copy link
Collaborator

Emmm, it is caused by the avatar is not square.

neoFelhz added a commit that referenced this issue Oct 21, 2017
@WoadZS WoadZS closed this as completed Oct 26, 2017
@neoFelhz neoFelhz mentioned this issue Nov 1, 2017
9 tasks
HeminWon pushed a commit to HeminWon/hexo-theme-material that referenced this issue Jan 3, 2018
* tag '1.5.2': (28 commits)
  fix(gallery): remove css async load
  Feat(comment):update valine comment version and add some attribute
  Feat(comment):update valine comment version and add some attribute
  refactor: update version code
  refactor(head): meta info
  refactor: remove combo support from lsloader
  fix(font): fix material icons base64
  style: compress the search code
  style(config): fix gittalk configurations format (iblh#569)
  docs(readme): some changes
  feat(icons): embedded the material_icons Try to fix iblh#459
  feat(i18n): Russian import (iblh#565)
  merge(iblh#563): add Dutch translation 🌐
  fix(iblh#553)
  fix(livere): add id for ls-javascript tag iblh#546
  feat(comment): update valine comment version (iblh#558)
  change cdn
  Feat(comment):update valine comment version
  feat(gitalk): add gitalk config
  feat(comment): add gitalk
  ...
zsjsll added a commit to zsjsll/hexo-theme-material that referenced this issue Apr 13, 2021
* feat(ls): New localstorage cleanup mechanism

* feat(comment): add livere comment system support.

* feat(qrcode): add google qrcode api support

* feat(cdn): update the config

* feat(cdn): update the file load

* feat(materialcdn): revert materialcdn configuration back

* feat(footer): footer text customize support

* feat(footer)
- fix a bug of using html tag
- add support for multi-line text

* fix/feat(coment)

- remove the livere_type config
- add dns-prefetch support for 163gentie & livere
- add sourceId support for 163gentie

* feat(footer_sns): use raw instead of base64

* fix(footer_sns): fix some issue of value setting

* feat(footer): add custom footer

* fix(sdd): remove the 'index.html' in value url.

* feat(head): minor changes

for better performance.

* feat(head): minor changes of dns-prefetch

- split the dns-prefetch
- add `chart.google.com`
- add `custom_font_host`

* feat(code highlight): google code prettify support (iblh#395)

* feat(prettify): minor changes

- Remove the custom_css
- Add public cdn support
- Only load prettify at post pages

* feat:(prettify): upload theme css

* feat(prettify): remove the comment of the theme css

* feat(prettify): minor changes

- load prettify.js only at post
- import prettify_css
- remove custom_css

* feat(prettify): import prettify css

* fix(footer): fix js.min.js import

* feat(head): link alternate for rss

* fix(prettify): minor fix

- fix prettify being affected by other styles
- fix background in prettify theme
- fix prettify theme import

* feat(structured-data)

- type
- author's avatar
- mainEntityOfPage

* feat(rss): improve link alternate rss type

* fix(rss): fix config.feed.type

* feat(fonts): import material icons as vendors

* fix(fonts): avoid font loading issue with ls

* feat(license): add every-post license config

* fix(fonts): fix material icons import

* fix(scrollbar): fix x-scroll when toTop show

fix(scrollbar): fix iblh#404

* fix(fonts): fix font-awsome import

* fix(background): set bing background before lazyload initialization

* feat(post): update license interface

* fix(scrollbar): fix x-scroll missing issue

* style(css): optimize (iblh#409)

* style(css): remove useless color
* style(css): remove browsehappy

* style(css): optimize (iblh#412)

- style(css): remove useless code
- style(css): compress the code

* fix(comment): 163gentie config value (iblh#417)

修复配置参数 gentie_thread_key_type 引用错误 (iblh#417)

* feat(head): minor changes

- change lsloader & queue import
- changes dns-prefetch import
- fix `X-UA-Compatible`
- add `format-detection`

* fix(comment): try `ls-javascript` to avoid issues

* fix/refactor(path): fix subdir error & refactor url concatenation

 - Use "url_for(path)" instead of "config.root + path" (ref: https://hexo.io/docs/helpers.html ).
 - Fix 404 error when site is in a subdirectory.
Closes iblh#420

* fix(permission): fix permission error

 - remove unnecessary execution permissions.

* remove(comment): remove 163 gentie

* fix(MathJax): fix case so mathjax can find its own script tag
ref: https://github.com/mathjax/MathJax/blob/master/unpacked/MathJax.js#L3127
Closes iblh#425

* refactor: move dnsprefetch to widget

* feat: add v2ex footer icon source (iblh#432)

* feat: compress the code of v2ex icon

https://jakearchibald.github.io/svgomg/

* feat(config): use jsDelivr as an example

* chore/feat(ci): bring up travis

* feat(notag nocategory): auto detect if the post has tags/categories

* feat(toc): auto detect if the post has toc
or it will hide toc button

* fix(burger): no longer gets error when you cant see this dude

* fix: move toc detector script to footer

* fix(iblh#373): support multiple analytics system

* fix: cnzz site id value update

* feat/chore(travis): make build more faster
- remove gulp installation
- set the depth of repo clone

* revert: feat/chore(travis): set the depth
This reverts commit 5976472

* fix(lsload): error resources type.

* fix: css resources error

* fix(lsload): resources error

* feat(footer): add v2ex icon to layout

* fix: new fallback rule for vendor config
vendors -> materialcdn -> origin

* fix: material icons import
compatible with Google Fonts or CDN

* fix: try to solve 'unexpected token' during the test

* chore(travis): use Trusty as enviroment of travis

* fix: fix 'unexpected token' in the test

* fix: solve 'unexpected token' in the test

* fix: telegram icon & v2ex icon

* fix: v2ex & telegram icon

* fix(footer): fix v2ex footer issue

* refactor(footer):reduce accuracy on v2ex footer image

* fix(footer): upload raw v2ex footer file

* feat(toc): auto hide toc when generate instead of realtime js

* feat(comment): add gitment

* style(scrollbar):  become the same as sidebar

* style(scrollbar): Hidden when the mouse leaves

* fix: version string error

* refactor(footer_icon): add icon to style.css

* refactor: remove config_footer in head

* feat(comment): disqus accessible check

* fix: path 'null' error when use materialcdn

* revert: style(scrollbar): become the same as sidebar and auto-hidding

This reverts commit 19d5355 .

* ci(browserstack): using browserstack to generate preview (iblh#477)

* ci(browserstack): bring up browserstack

* ci(browserstack): fix test.js

* ci(browserstack): remove show test.js log

* ci(browserstack): add project info

* ci(config): add more config

* ci(browserstack): only test on desktop platfrom

* ci(browserstack): set timeout

* ci(browserstack): follow test.js edit

* ci(browserstack): optimize

* ci(browserstack): remove OSX_Opera

* ci(browserstack): remove real device

* ci(docsify): add docsify

* ci(docsify): fix docsify

* ci(docsify): fix docsify

* ci(docsify): use mkdir -p

* ci(docsify): fix deploy

* Add Valine comment system

* fix(comment): subdir path fix

* fix(comment): change valine.min.js link

* fix(comment):switch Valine.min.js js file to jsdelivr cdn

* ci(travis): add notification

* feat: add dns-prefetch for valine

* fix(gitment): fixed a error

* fix(css): fix css optimize fault

* feat(font): add new font.host catnet

* feat(hanabi): add code pretty hanabi

* refactor(config): update about highlight

* fix(iblh#495)

* feat(hanabi): allow custom colors

* feat: add materialcdn support for hanabi

* style(font): add font-family for <code> tag

* style(version): update version code to 1.5.0

* fix(burger): fix console error

* chore(readme): update version color

* chore(style): update config.template

* chore(README): update render image

* chore(README): minor style changes

* Add option 'hide_license'.

* Add option 'hide_share'.

* Add option 'hide_post_info'.

* fix(comment): disqus_click button issue

* feat: update dns-prefetch

* fix(dnsprefetch):remove 'else'.

* feat(comment): add gitalk

* feat(gitalk): add gitalk config

* Feat(comment):update valine comment version

* change cdn

* feat(comment): update valine comment version (iblh#558)

* feat(comment):update valine comment version
* change cdn

* fix(livere): add id for ls-javascript tag iblh#546

* fix(iblh#553)

* merge(iblh#563): add Dutch translation 🌐

This commit adds a Dutch translation

* feat(i18n): Russian import (iblh#565)

* feat(icons): embedded the material_icons
Try to fix iblh#459

* docs(readme): some changes

* style(config): fix gittalk configurations format (iblh#569)

* style: compress the search code

* fix(font): fix material icons base64

* refactor: remove combo support from lsloader

* refactor(head): meta info

* refactor: update version code

* Feat(comment):update valine comment version and add some attribute

* Feat(comment):update valine comment version and add some attribute

* fix(gallery): remove css async load

* feat(footer_sns): add segmentfault (iblh#590)

* fix(gitment): fix an error

Uncomment "id",because gitment says "Error: Validation Failed"

* feat/fix(copyright): avoid using document.write

* feat(comment): add wildfire

Signed-off-by: Love4Taylor <love4taylor.me@gmail.com>

* fix(wildfire): try to fix padding issue

Signed-off-by: Love4Taylor <love4taylor.me@gmail.com>

* feat(gallery): add gallery settings

* feat(gallery): unlock information panel

* fixed(valine): fixed guest_info not working

* feat: improve accessiable reading (iblh#628)

* fix(typo): fix two typos in config (iblh#615)

change words "form" to "from"

* fix Uncaught TypeError: Cannot read property 'contains' of undefined

* fix: solution Of 'Cannot read property' iblh#654

* feat (lang) : add language - korean

* fix(valine): attribute configurations do not take effect

* refactor: dump version

* fix: clean material localstorage

* fix: change cat.net to loli.net

* refactor: dump version 1.5.6

* chore: update README

Co-authored-by: eyhn <cneyhn@gmail.com>
Co-authored-by: neoFelhz <1044010989@qq.com>
Co-authored-by: neoFelhz <neofelhz@gmail.com>
Co-authored-by: neoFelhz <neofelhz@github.com>
Co-authored-by: zhuxiongxian <zhuxiongxian@gmail.com>
Co-authored-by: cubesky <wqr3011@gmail.com>
Co-authored-by: cubesky <cubesky@users.noreply.github.com>
Co-authored-by: koyabr <koyabr@gmail.com>
Co-authored-by: TakWolf <TakWolf@users.noreply.github.com>
Co-authored-by: bloodtox3710 <bloodtox3710@users.noreply.github.com>
Co-authored-by: Kanglai Qian <qiankanglai@gmail.com>
Co-authored-by: Henry Heng <hrygheng@gmail.com>
Co-authored-by: Halyul <xuhaoyuforever@gmail.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
Co-authored-by: Dotos <yy.liu@foxmail.com>
Co-authored-by: Viosey <imviosey@gmail.com>
Co-authored-by: ysc3839 <yurichard3839@gmail.com>
Co-authored-by: xCss <mail@xone.me>
Co-authored-by: Wouter Janson <WouterJanson@users.noreply.github.com>
Co-authored-by: Ilya Piatrenka <petrenko.ilia@gmail.com>
Co-authored-by: Bobby Rong <rjl931189261@126.com>
Co-authored-by: 汤利俊 <869058216@qq.com>
Co-authored-by: Copyright³ <26130106+unstartdev@users.noreply.github.com>
Co-authored-by: Love4Taylor <love4taylor.me@gmail.com>
Co-authored-by: WSKaCrs <wska@mainstars.net>
Co-authored-by: TLingC <xghc@foxmail.com>
Co-authored-by: neo Felhz <neofelhz+github@gmail.com>
Co-authored-by: Rocky <rjoacnkey@gmail.com>
Co-authored-by: Windman <617674934@qq.com>
Co-authored-by: wangn <3579677768@qq.com>
Co-authored-by: itning <itning@itning.top>
Co-authored-by: extracold1209 <extracold1209@gmail.com>
Co-authored-by: lihang <lihang.lyon@gmail.com>
Co-authored-by: CubeSky <max_301@live.com>
Co-authored-by: Bo <ibh@live.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants