gkz / LiveScript

LiveScript is a language which compiles to JavaScript. It has a straightforward mapping to JavaScript and allows you to write expressive code devoid of repetitive boilerplate. While LiveScript adds many features to assist in functional style programming, it also has many improvements for object oriented and imperative programming.
http://livescript.net
MIT License
2.31k stars 156 forks source link

enlarge gihub-stars iframe due to numbers over 2k #1118

Closed ghost closed 2 years ago

ghost commented 2 years ago

current: current_20220101143418

fixed: should_20220101143142

anko commented 2 years ago

Is it possible to make an iframe dynamically size to fit content?

Alternatively, could use an SVG from Shields.io to avoid the iframe completely. They can dynamically generate buttons from an API lookup on their backend, based on URL parameters, like this:

https://img.shields.io/github/stars/gkz/LiveScript?style=social

Principle of least privilege and all that.

ghost commented 2 years ago

the reason it uses iframe currently is b/c its "serverless" – request is made by a js-script to github api at the moment of loading

i'd rather ask about the entire point of having dynamic counter in the first place, past 2k stars it doesnt really matter, can just get the number on each release as a ci/cd step