Code Monkey home page Code Monkey logo

Comments (3)

distantnative avatar distantnative commented on June 2, 2024

I'm afraid this might need a JS solution:

  1. measure available width (max. width of field)
  2. measure space nodes and marks would take
  3. move marks into a "..." dropdown as long as (2) is larger than (1)

from kirby.

bastianallgeier avatar bastianallgeier commented on June 2, 2024

One part is already fixed. The layout box is no longer cutting off the toolbar. But the toolbar is still not at full width and will have a scrollbar even if there's enough space. I think this is related to the new positioning logic.

from kirby.

distantnative avatar distantnative commented on June 2, 2024

@bastianallgeier Three things:

  1. .k-writer-toolbar[data-inline="true"] should have a max-width: none; added to be full-width without scrollbar
  2. The positioning logic still fails: it first tries to correct overflow to the left, then to the right. If the toolbar is larger than the container, it first shifts it to the right, then back to the left and will have an overflow. This is because we can only assess the overflow/offset in relation to the container - not the full window (where it might have more space to either side).
  3. With position: absolute it'll be very hard to break out of the editor itself. If we want to use the space around the editor itself for the toolbar to overlay, we'll need to move to position: fixed

from 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.