Code Monkey home page Code Monkey logo

django-bootstrap-icons's People

Contributors

christianwgd avatar dcuenot avatar dependabot[bot] avatar ethanhaller avatar hashemi avatar taylorsmarks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

django-bootstrap-icons's Issues

Uses incorrect slashes on Windows

In the bootstrap_icons.py file, it uses os.path.join in both bs_icon and md_icon, but it's building a URL where we should always have forward slashes, never backwards slashes as you'll end up with if you're running the code on Windows.

Multiple instances of icons causes site to exponentially slow down

As I loaded more icons in my template file on my django project, the site slowed down considerable. Even when I included just 5 icons there was a noticeable difference in site load times. I'm not sure why this is currently but it's a huge downside to using icons in django templates this way.

Not working

Tried to use this module with the latest version, 0.8.7, followed the instruction on the pypy page(https://pypi.org/project/django-bootstrap-icons/):

  • Installed with pip
  • Added the django_bootstrap_icons in INSTALLED_APPS
  • Added {% load bootstrap_icons %} in the template base used for every template
  • Tried {% bs_icon 'alarm' %} in the homepage

Recived this error:
Invalid block tag on line 9: 'bs_icon', expected 'endblock'. Did you forget to register or load this tag?

image

Bootstrap Icons default alignment has changed

At some point Bootstrap Icons seems to have changed the default vertical alignment of the icons. I'll have to take a closer look.

A reliable workaround is to set an explicit alignment with the extra_classes argument or override the global default in CSS.

Performance issues if many icons on one page

I noticed performance issues, if i have a long list of objects in a template, that use the same icon. Each icon is completely new rendered.

To avoid this, build some sort of cache, so that icons are only rendered once and simply loaded for each subsequent use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.