Archived
1
0
Fork 0

Fix logo for long version strings

This commit is contained in:
Braiden Vasco 2017-08-31 05:52:08 +00:00
parent cb29a6829c
commit 9ffb8d0c9f

View file

@ -2,7 +2,7 @@
module Widgets
class Logo < React::Component
LOGO = [
TMP_LOGO = [
' _____ ___ _ _ ___ _ _ ',
' |_ _/ _ \ \/ / _ \| \ | | ',
' | || | | \ / | | | \| | ',
@ -15,8 +15,10 @@ module Widgets
' ',
].freeze
WIDTH = LOGO.first.length
HEIGHT = LOGO.length
WIDTH = TMP_LOGO.first.length
HEIGHT = TMP_LOGO.length
LOGO = TMP_LOGO.map { |s| s.ljust WIDTH }.freeze
def render
create_element :window, x: props[:x], y: props[:y], width: props[:width], height: props[:height] do