about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 20:15:15 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-24 20:15:15 -0400
commitfe4929548f897815a53b38684ce322694cef0673 (patch)
tree7df3e6429cd1f260e08fb7d3c2aceba8ba0a8c94
parent687299b33934d25017a226ba6b979e44f0b1f441 (diff)
downloadpokeviewer-fe4929548f897815a53b38684ce322694cef0673.tar.gz
pokeviewer-fe4929548f897815a53b38684ce322694cef0673.tar.bz2
pokeviewer-fe4929548f897815a53b38684ce322694cef0673.zip
Added space to empty box slots
-rw-r--r--app/assets/stylesheets/pokeviewer/pokemon.css.scss6
-rw-r--r--app/views/pokeviewer/pokemon/index.html.haml4
2 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/stylesheets/pokeviewer/pokemon.css.scss b/app/assets/stylesheets/pokeviewer/pokemon.css.scss index 6dbb6c8..f398844 100644 --- a/app/assets/stylesheets/pokeviewer/pokemon.css.scss +++ b/app/assets/stylesheets/pokeviewer/pokemon.css.scss
@@ -108,6 +108,12 @@
108 .pc-contents { 108 .pc-contents {
109 margin: 0; 109 margin: 0;
110 110
111 .spacer {
112 display: block;
113 width: 32px;
114 height: 32px;
115 }
116
111 .pc-pokemon { 117 .pc-pokemon {
112 .pc-data { 118 .pc-data {
113 display: none; 119 display: none;
diff --git a/app/views/pokeviewer/pokemon/index.html.haml b/app/views/pokeviewer/pokemon/index.html.haml index e536080..436f48a 100644 --- a/app/views/pokeviewer/pokemon/index.html.haml +++ b/app/views/pokeviewer/pokemon/index.html.haml
@@ -18,7 +18,9 @@
18 %tr 18 %tr
19 - row.each do |p| 19 - row.each do |p|
20 %td.pc-pokemon 20 %td.pc-pokemon
21 - unless p.nil? 21 - if p.nil?
22 .spacer
23 - else
22 = link_to image_tag(p.icon_path), p 24 = link_to image_tag(p.icon_path), p
23 .pc-data 25 .pc-data
24 .pc-data-name= p.revisions.last.nickname 26 .pc-data-name= p.revisions.last.nickname