Skip to content

Commit

Permalink
fix(banners): removes fixed width
Browse files Browse the repository at this point in the history
  • Loading branch information
arsamsarabi committed Oct 12, 2023
1 parent a8f5b39 commit 5b64eba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/utilities.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
GOT_MENU_BG_COLOUR=189
GOT_MENU_FG_COLOUR=54
GOT_MENU_WIDTH=100

function ask {
gum style \
Expand All @@ -18,22 +17,22 @@ function welcome_message {
clear
gum style \
--background $GOT_MENU_BG_COLOUR --foreground $GOT_MENU_FG_COLOUR --bold \
--align center --width $GOT_MENU_WIDTH --margin "1 2 0 2" --padding "1 1" \
--align center --margin "1 2 0 2" --padding "1 1" \
'got the Git assistant.' '' 'Arsam Sarabi - arsamsarabi@me.com'
}

function no_git_message {
clear
gum style \
--background 52 --foreground 225 \
--bold --align center --width $GOT_MENU_WIDTH --margin "0 2" --padding "1 1" \
--bold --align center --margin "0 2" --padding "1 1" \
'🚨 404 - Git not found. 🚨' '' 'Make sure you are in the root folder of a git repository and try again.'
}

function status_bar {
gum style \
--background $GOT_MENU_BG_COLOUR --foreground $GOT_MENU_FG_COLOUR \
--width $GOT_MENU_WIDTH --margin "1 2" --padding "1" --bold \
--margin "1 2" --padding "1" --bold \
"$APP_STATUS | 🌱: $CURRENT_GIT_BRANCH"
}

Expand Down

0 comments on commit 5b64eba

Please sign in to comment.