Also, use URL for list item key
Joseph Weston authored on 19/12/2021 03:44:35... | ... |
@@ -153,12 +153,7 @@ |
153 | 153 |
(defclass spell-list-panel [] |
154 | 154 |
{} |
155 | 155 |
title-style |
156 |
- license-notice-style |
|
157 |
- [:ul {:padding-left 0}] |
|
158 |
- [:li {:list-style :inside |
|
159 |
- :list-style-type "'* '"} |
|
160 |
- [s/first-child {:font-weight :bold |
|
161 |
- :margin-right :0.5rem}]]) |
|
156 |
+ license-notice-style) |
|
162 | 157 |
|
163 | 158 |
(defclass item-list-panel [] |
164 | 159 |
{} |
... | ... |
@@ -336,9 +336,9 @@ |
336 | 336 |
(defn spell-list-panel [spells] |
337 | 337 |
[:article {:class (styles/spell-list-panel)} |
338 | 338 |
[heading "Spells"] |
339 |
- [:ul |
|
340 |
- (for [[index spell] (enumerated (sort-by :name spells))] |
|
341 |
- ^{:key index} |
|
339 |
+ [:ul {:class (styles/regular-list)} |
|
340 |
+ (for [spell (sort-by :name spells)] |
|
341 |
+ ^{:key (spell :url)} |
|
342 | 342 |
[:li |
343 | 343 |
[:span [code (spell :name)]] |
344 | 344 |
[:span (-> spell short-spell-description parenthesize)]])] |