Dynamic action bar sizing

Fixes #4