Skip to content

Commit

Permalink
Put each region code on a separate line in status map CSS
Browse files Browse the repository at this point in the history
The separate lines will help to minimize the number of merge conflicts in PRs that add or remove shield definitions.
  • Loading branch information
1ec5 committed Mar 19, 2022
1 parent 11b1b20 commit 411bdcc
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
34 changes: 33 additions & 1 deletion doc-img/shield_map_us.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 18 additions & 1 deletion doc-img/shield_map_world.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion style/scripts/status_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as ShieldDef from "../js/shield_defs.js";

function fillPaths(svg, codes) {
let selectors = new Set(codes.map((code) => `.${code.toLowerCase()}`));
return svg.replace(".supported", new Array(...selectors).join(", "));
return svg.replace(".supported", new Array(...selectors).join(",\n"));
}

// Inject a map of each sprite ID to an absolute image URL instead of the usual sprite metadata.
Expand Down

0 comments on commit 411bdcc

Please sign in to comment.