0x/visualizer/cmp/zoom.js
Renée Kooi 69d6faf6dc
Style fixes
- Fixes the height of the graph in FF
  For some reason `height: calc(100% - 66px)` does something totally
  different than `height: 100%`, but with `100vh` the behaviour is the
  same either way. This seems like a FF CSS bug maybe…
- Use floating + margins instead of absolute positions for top bar
  controls
  Default button and input sizes are different across browsers and OSes,
  by using floats + margins the positioning adapts to sizes instead of
  having things drawn on top of each other.
2018-07-04 11:47:39 +02:00

9 lines
264 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict'
module.exports = (render) => (action) => render`
<div class='fr dn db-l h-100 mr1'>
<button class='h-100' onclick=${() => action({type: 'out'})}></button>
<button class='h-100' onclick=${() => action({type: 'in'})}>+</button>
</div>
`