ua-snap / ardac-explorer

ARDAC GUI Explorer
0 stars 0 forks source link

Simplify grid-item classes and clean up static vs. dynamic attributes #8

Closed cstephen closed 9 months ago

cstephen commented 9 months ago

This PR cleans up HTML template code by using :bind only for dynamic class names, alongside just bind for static class names. It turns out this works just fine! I don't know why it didn't seem to work on my first pass.

I also realized that only the Masonry grids themselves (parent divs) need unique class selectors. Grid items can all use the grid-item class regardless of which grid they belong to, and I think it's better (more portable) to keep these more general because it may help with SASS styling later down the road if needed.