Fix logo for long version strings
This commit is contained in:
parent
cb29a6829c
commit
9ffb8d0c9f
1 changed files with 7 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
module Widgets
|
module Widgets
|
||||||
class Logo < React::Component
|
class Logo < React::Component
|
||||||
LOGO = [
|
TMP_LOGO = [
|
||||||
' _____ ___ _ _ ___ _ _ ',
|
' _____ ___ _ _ ___ _ _ ',
|
||||||
' |_ _/ _ \ \/ / _ \| \ | | ',
|
' |_ _/ _ \ \/ / _ \| \ | | ',
|
||||||
' | || | | \ / | | | \| | ',
|
' | || | | \ / | | | \| | ',
|
||||||
|
@ -10,13 +10,15 @@ module Widgets
|
||||||
' |_| \___/_/\_\___/|_| \_| ',
|
' |_| \___/_/\_\___/|_| \_| ',
|
||||||
' ',
|
' ',
|
||||||
' Version 0.0.0 ',
|
' Version 0.0.0 ',
|
||||||
" API #{Tox::Version::API_VERSION} ",
|
" API #{Tox::Version::API_VERSION}",
|
||||||
" ABI #{Tox::Version::abi_version} ",
|
" ABI #{Tox::Version::abi_version}",
|
||||||
' ',
|
' ',
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
WIDTH = LOGO.first.length
|
WIDTH = TMP_LOGO.first.length
|
||||||
HEIGHT = LOGO.length
|
HEIGHT = TMP_LOGO.length
|
||||||
|
|
||||||
|
LOGO = TMP_LOGO.map { |s| s.ljust WIDTH }.freeze
|
||||||
|
|
||||||
def render
|
def render
|
||||||
create_element :window, x: props[:x], y: props[:y], width: props[:width], height: props[:height] do
|
create_element :window, x: props[:x], y: props[:y], width: props[:width], height: props[:height] do
|
||||||
|
|
Reference in a new issue