Skip to content

Commit

Permalink
set width of logo columns in summary method
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Jun 18, 2024
1 parent 69fb102 commit f1f20a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nflseedR
Title: Functions to Efficiently Simulate and Evaluate NFL Seasons
Version: 1.2.0.9000
Version: 1.2.0.9001
Authors@R: c(
person("Lee", "Sharpe", role = c("aut", "cph")),
person("Sebastian", "Carl", , "[email protected]", role = c("cre", "aut"))
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# nflseedR (development version)

* Fixed error in `simulate_nfl()` where it crashes because the "fake schedule" isn't a tibble. (#43)
* The `summary` method `summary.nflseedR_simulation()` explicitly sets the columns width of the logo column because those columns are hidden in some unclear scenarios.

# nflseedR 1.2.0

Expand Down
3 changes: 2 additions & 1 deletion R/summary_nflseedR.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ summary.nflseedR_simulation <- function(object, ...){
gt::ends_with("won_conf") ~ gt::px(60),
gt::ends_with("won_sb") ~ gt::px(60),
gt::ends_with("draft1") ~ gt::px(60),
gt::ends_with("draft5") ~ gt::px(60)
gt::ends_with("draft5") ~ gt::px(60),
gt::ends_with("team") ~ gt::px(60)
) %>%
gt::cols_align(
align = "right",
Expand Down

0 comments on commit f1f20a7

Please sign in to comment.