Fix review section toggle

This also makes all section toggles more robust against reordering of
CSS classes.
This commit is contained in:
Rūdolfs Ošiņš
2025-04-02 15:35:24 +02:00
parent b770fac336
commit 94c85ad06b
4 changed files with 8 additions and 16 deletions
+3 -4
View File
@@ -344,9 +344,6 @@
margin-bottom: 0.5rem;
color: var(--color-foreground-dim);
}
.hide {
display: none;
}
</style>
<Layout publicKey={config.publicKey}>
@@ -521,7 +518,9 @@
<div class="txt-semibold global-flex txt-regular">Timeline</div>
</NakedButton>
</div>
<div class:hide={hideTimeline} style:margin-top="1rem">
<div
style:display={hideTimeline ? "none" : "revert"}
style:margin-top="1rem">
<IssueTimeline {activity} />
</div>
</div>