Code Monkey home page Code Monkey logo

Comments (4)

yusanshi avatar yusanshi commented on September 24, 2024

Sounds like a good idea. While working on v2 of emgithub, I have implemented this feature (6a5dfd9). You can check it at https://emgithub.com/~

from emgithub.

MiracleXYZ avatar MiracleXYZ commented on September 24, 2024

Appreciate it 👍

from emgithub.

MiracleXYZ avatar MiracleXYZ commented on September 24, 2024

Some small improvements can be done though, like:

  1. Set the maximum path depth.
  2. Trim the path string if it gets too long.

from emgithub.

yusanshi avatar yusanshi commented on September 24, 2024

I believe you mean when the path got too long as shown below...
image

However I think adding the option "Set the maximum path depth" may make the emgithub have too many options and too focused on the details.

I believe "Trim the path string if it gets too long" is preferred, such that when the text can't fit into one line it will get clipped and ellipsis is shown on the left. But text-overflow: ellipsis; will only trim the text on the right side. Use the direction:rtl; may do the trick but I think it may be too dirty... So currently I haven't got an effective and clean solution to this.

If you have got a better solution, PR is always welcomed.
If a dirty fix is suitable for your own use cases, you can fork the project and make the changes.

from emgithub.

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.