Giter VIP home page Giter VIP logo

Comments (4)

distantnative avatar distantnative commented on July 18, 2024

Using the standard before slot of a text field here, so neither wrapping nor hiding on blur are really attractive options as they'd mean hacking a default field. But maybe I just check how long the domain/before text is and if more than x characters, shorten it with

from retour-for-kirby.

nilshoerrmann avatar nilshoerrmann commented on July 18, 2024

Regarding shortening: in my case, it would also work to only show the subfolder: /example.com/ instead of localhost:8888/example.com/. This would make clear where to start with my path definition without filling the full input field.

from retour-for-kirby.

nilshoerrmann avatar nilshoerrmann commented on July 18, 2024

Other ideas:

  • Adding a flag in the config whether to show or hide the domain. I really like the domain to be displayed, but in my case it would make sense to disable it.
  • Allowing to set a custom domain in the config (I could add the production domain for instance which is way shorter than my localhost).

from retour-for-kirby.

distantnative avatar distantnative commented on July 18, 2024

✅ There will be a new distant native.retour.site option that allows setting a custom text or to disable the prefix completely (false).

from retour-for-kirby.

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.