mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
[Fix] TriggerConfig Expand/Collapse (#1630)
* Fixed so that the angle icon indicating expand/collapse for a trigger config actually flips when clicked * Fixed styles
This commit is contained in:
parent
c1924534da
commit
c8d1ea1460
2 changed files with 3 additions and 1 deletions
|
|
@ -314,7 +314,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
|
||||||
const index = Number.parseInt(button.dataset.index);
|
const index = Number.parseInt(button.dataset.index);
|
||||||
const toggle = (element, codeMirror) => {
|
const toggle = (element, codeMirror) => {
|
||||||
codeMirror.classList.toggle('revealed');
|
codeMirror.classList.toggle('revealed');
|
||||||
const button = element.querySelector('a > i');
|
const button = element.querySelector('.expand-trigger > i');
|
||||||
button.classList.toggle('fa-angle-up');
|
button.classList.toggle('fa-angle-up');
|
||||||
button.classList.toggle('fa-angle-down');
|
button.classList.toggle('fa-angle-down');
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
|
||||||
select {
|
select {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
@ -96,6 +97,7 @@
|
||||||
height: 0;
|
height: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
transition: height 0.1s ease-in-out;
|
transition: height 0.1s ease-in-out;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
&.revealed {
|
&.revealed {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue