mirror of
https://github.com/davidmarkclements/0x.git
synced 2026-01-25 14:47:55 +00:00
- 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.
9 lines
264 B
JavaScript
9 lines
264 B
JavaScript
'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>
|
||
`
|