File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
lib/better_errors/templates Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 107107 }
108108
109109 .frame_info {
110+ display : none;
111+
110112 right : 0 ;
111113 left : 40% ;
112114
113115 padding : 20px ;
114116 padding-left : 10px ;
115117 margin-left : 30px ;
116118 }
119+ .frame_info .current {
120+ display : block;
121+ }
117122 }
118123
119124 nav .sidebar {
787792 </ nav >
788793
789794 <% backtrace_frames . each_with_index do |frame , index | %>
790- < div class ="frame_info " id ="frame_info_ <%= index %> " style =" display:none; " > </ div >
795+ < div class ="frame_info " id ="frame_info_ <%= index %> "> </ div >
791796 <% end %>
792797 </ section >
793798</ body >
974979 } ;
975980
976981 function switchTo ( el ) {
977- if ( previousFrameInfo ) previousFrameInfo . style . display = "none" ;
982+ if ( previousFrameInfo ) {
983+ previousFrameInfo . className = "frame_info" ;
984+ }
978985 previousFrameInfo = el ;
979986
980- el . style . display = "block " ;
987+ el . className = "frame_info current " ;
981988
982989 var replInput = el . querySelector ( '.be-console input' ) ;
983990 if ( replInput ) replInput . focus ( ) ;
You can’t perform that action at this time.
0 commit comments