Git Product home page Git Product logo

Comments (2)

zach-capalbo avatar zach-capalbo commented on June 26, 2024

Hi @alxx,

The automatic subpane styling is not super smart, so making style changes sometimes requires some fiddling. I think this should do the trick for you, I added status_pane.style('margin-right', '0px') and buffer_pane.style('margin-left', '0px')

require 'flammarion'
require 'colorize'

f = Flammarion::Engraving.new
f.orientation = :vertical

top_pane = f.subpane('main')
top_pane.orientation = :horizontal
top_pane.style('border', '1px solid white')
top_pane.style('height', '200px')

status_pane = top_pane.subpane('status')
status_pane.style('border-right', '3px solid white')
status_pane.style('width', '40%')
status_pane.style('margin-right', '0px')
status_pane.puts "Status"

buffer_pane = top_pane.subpane('buffer')
buffer_pane.style('width', '60%')
buffer_pane.style('height', '180px')
buffer_pane.style('margin-left', '0px')
plot = buffer_pane.plot(Array.new(50).map{rand(10)},  {staticPlot: true})

Just in case you weren't aware, on most platforms you can press Ctrl+Shift+I to bring up a web developer interface, which will let you experiment with the styles without have to reopen Engravings.

Let me know if this helps with the issue you're having or not.

from flammarion.

alxx avatar alxx commented on June 26, 2024

That did solve things, thanks, I appreciate that. I didn't know about the console, though I should've imagined that it works much like Chrome (although the keystroke is different on a Mac: Cmd-Alt-I)

You should add a note in the README saying that some CSS knowledge is required :) as it's really not my strongest point. :)

By the way, speaking about the README, you may want to fix the typo in the line

require 'colorized'

which should be

require 'colorize'

Thanks again!

from flammarion.

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.