Skip to content

Commit

Permalink
Fix placeholder on scrollable action content
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Nov 20, 2023
1 parent 575e480 commit 87c657b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
const text = document.createElement('div');
text.className = 'sp-scrollable-action-content';
const value = renderValue(params['WFTextActionText'], 'Text');
value.className = 'sp-value sp-unstyled-value';
value.classList.add('sp-value', 'sp-unstyled-value');
text.appendChild(value);
action.appendChild(renderActionContent(text.outerHTML));

Expand Down
4 changes: 4 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@
padding: .3rem .5rem;
}

.sp-container .sp-scrollable-action-content .sp-placeholder-value {
opacity: .3;
}

.sp-container .sp-value.sp-unstyled-value {
border-radius: 0;
background: none;
Expand Down

0 comments on commit 87c657b

Please sign in to comment.