Skip to content

Commit

Permalink
[Gamut Mapping App] Hide deltas if mapped color is unchanged. (color-…
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer authored Feb 29, 2024
1 parent d082f35 commit e48d472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/gamut-mapping/map-color.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default {
</dt>
<dd>
<css-color swatch="large" :color="mapped[method].color"></css-color>
<dl class="deltas">
<dl class="deltas" v-if="!Object.values(mapped[method].deltas).every(d => d === 0)">
<div v-for="(delta, c) of mapped[method].deltas" :class="'delta-' + c.toLowerCase()">
<dt>Δ{{ c }}</dt>
<dd :class="{
Expand Down

0 comments on commit e48d472

Please sign in to comment.