diff --git a/assets/css/app.css.sass b/assets/css/app.css.sass index 7ffe05f..bd0e8ee 100644 --- a/assets/css/app.css.sass +++ b/assets/css/app.css.sass @@ -17,11 +17,11 @@ $susy: ( columns: 5 , gutter-position: split ) .instruction_view - @include span(23%) + @include span(33%) .status_view - @include span(23%) + @include span(13%) line-height : 1.25em diff --git a/lib/views/registers_view.rb b/lib/views/registers_view.rb index 54c413b..0a95dc0 100644 --- a/lib/views/registers_view.rb +++ b/lib/views/registers_view.rb @@ -21,7 +21,7 @@ class RegistersView < ListView @element end - def register_changed reg , old , value + def register_changed( reg , old , value ) reg = reg.symbol unless reg.is_a? Symbol index = reg.to_s[1 .. -1 ].to_i has = Risc.machine.objects[value.object_id] @@ -47,6 +47,8 @@ class ValueView < ElementView end def draw - @element = div("ul.nav!") << div("li") << div("span", @value) + li = div("li") + li << div("span", @value) + @element = div("ul.nav!") << li end end