Code Monkey home page Code Monkey logo

Comments (4)

Turbo87 avatar Turbo87 commented on August 24, 2024

This is unfortunately not that easy as it requires changes to the CSS file.
I'll have a look if I can work something out, but right now I don't have a
good idea how to do it.

from leaflet-sidebar.

Turbo87 avatar Turbo87 commented on August 24, 2024

I've had a second look and the way the sidebar is implemented makes it quite hard to change the width dynamically. Since the width is also adjusting to the screen size a fixed pixel width wouldn't make much sense anyways. I may however convert the CSS file to LESS or something similar to introduce a dedicated variable to easily change the default widths if you want something different.

from leaflet-sidebar.

 avatar commented on August 24, 2024

for reference, there are two properties that have to be adjusted per sidebar to make it look right: .leaflet-sidebar.left, and .leaflet-sidebar.left.visible ~ .leaflet-left

from leaflet-sidebar.

Turbo87 avatar Turbo87 commented on August 24, 2024

or change the dedicated variables in the SASS file: https://github.com/Turbo87/leaflet-sidebar/blob/master/src/L.Control.Sidebar.scss#L5-L8

from leaflet-sidebar.

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.