GithubHelp home page GithubHelp logo

fullwidth-element's People

Contributors

baygeldin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

fullwidth-element's Issues

Doesn't work with dynamic content

I'm using it like this

<fullwidth-element nowrap="true" spacing="3">[[caption]]</fullwidth-element>

But caption is empty at the beginning, and only gets it's real value from an ajax request after the DOM has loaded. But fullwidth-element doesn't seem to update it's body when the content changes.
So it takes the initial value of caption "" and I only get empty space even after the caption is set to its real value!
How can I trigger fullwidth-element to update its body?

Newlines become 1 space

I'm using it like this

<fullwidth-element nowrap="true" spacing="3">[[caption]]</fullwidth-element>

Newlines in the caption become one space in the rendered body even though spacing is 3!
This looks weird since it moves the words closer together than they were intended to be. The newline was intended to separate the words even more than a space, now they are even closer together :/
Either they should also be the same number of spaces as a normal space (3 in this case) or they should become <br>.

Links look weird

This is how links look with fullwidth-element:

It's the same no matter if the <a> element is nested inside the <fullwidth-element> or the other way around.
The line underneath should not be longer than with link with non-fullwidth text.

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.