Giter Club home page Giter Club logo

Comments (7)

SJellen avatar SJellen commented on June 23, 2024

Screen Shot 2021-05-24 at 2 35 35 PM

Also there is a need to replace some of the character codes with the correct characters. In this case the code is for ' .
The best bet would be to create a function that fixes the special characters and truncates the long names all in one. Then add that to every instance of the pet.name. like ....

<h1>{petNameCleaner(pet.name)}</h1>

I believe that there is also a css truncate option but it wouldn't fix the character code errors.
Screen Shot 2021-05-24 at 2 50 00 PM
css truncate

from awesome-adoption.

redxzeta avatar redxzeta commented on June 23, 2024

oh thats a good point

from awesome-adoption.

redxzeta avatar redxzeta commented on June 23, 2024

did you want to create this issue or should I

from awesome-adoption.

SJellen avatar SJellen commented on June 23, 2024

I'll give it a shot. At least I should have the function done quickly. Look for a PR on Wednesday.

from awesome-adoption.

redxzeta avatar redxzeta commented on June 23, 2024

are you working on both or just fixing the special characters?

from awesome-adoption.

SJellen avatar SJellen commented on June 23, 2024

I was going to add them together as a single js function. But if you prefer they can be broken into 2.
A function for the regex and the css fix for the truncating.

from awesome-adoption.

redxzeta avatar redxzeta commented on June 23, 2024

Ahh okay thats fine

from awesome-adoption.

Related Issues (20)

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.