Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(automations): un-nest template-picker styles from .tramo-page

Juan Denis6f4246bf0eb8
diff --git a/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss b/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss
index d0afd6b4..1d25e2a0 100644
--- a/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss
+++ b/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss
@@ -202,45 +202,48 @@
}
}
- /* Template picker (inside the modal) */
- .tramo-template-list {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
+}
- .tramo-template {
- display: flex;
- flex-direction: column;
- gap: 3px;
- text-align: left;
- width: 100%;
- padding: 12px 14px;
- border-radius: var(--radius, 8px);
- border: 1px solid var(--border, rgba(128, 128, 128, 0.3));
- background: transparent;
- color: inherit;
- cursor: pointer;
- transition: border-color 0.15s ease, background 0.15s ease;
+/* Template picker lives inside a <Modal>, which portals to <body> -- OUTSIDE the
+ .tramo-page subtree -- so these rules must be top-level, not nested under
+ .tramo-page, or they never match the portaled DOM. */
+.tramo-template-list {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
- &:hover {
- border-color: var(--accent-bright, #3b82f6);
- background: rgba(128, 128, 128, 0.06);
- }
+.tramo-template {
+ display: flex;
+ flex-direction: column;
+ gap: 3px;
+ text-align: left;
+ width: 100%;
+ padding: 12px 14px;
+ border-radius: var(--radius, 8px);
+ border: 1px solid var(--border, rgba(128, 128, 128, 0.3));
+ background: transparent;
+ color: inherit;
+ cursor: pointer;
+ transition: border-color 0.15s ease, background 0.15s ease;
+
+ &:hover {
+ border-color: var(--accent-bright, #3b82f6);
+ background: rgba(128, 128, 128, 0.06);
+ }
- &:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- }
+ &:disabled {
+ opacity: 0.6;
+ cursor: not-allowed;
+ }
- &__name {
- font-weight: 600;
- }
+ &__name {
+ font-weight: 600;
+ }
- &__desc {
- font-size: 12.5px;
- opacity: 0.7;
- }
+ &__desc {
+ font-size: 12.5px;
+ opacity: 0.7;
}
}
diff --git a/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss b/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss
index d0afd6b4..1d25e2a0 100644
--- a/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss
+++ b/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss
@@ -202,45 +202,48 @@
}
}
- /* Template picker (inside the modal) */
- .tramo-template-list {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
+}
- .tramo-template {
- display: flex;
- flex-direction: column;
- gap: 3px;
- text-align: left;
- width: 100%;
- padding: 12px 14px;
- border-radius: var(--radius, 8px);
- border: 1px solid var(--border, rgba(128, 128, 128, 0.3));
- background: transparent;
- color: inherit;
- cursor: pointer;
- transition: border-color 0.15s ease, background 0.15s ease;
+/* Template picker lives inside a <Modal>, which portals to <body> -- OUTSIDE the
+ .tramo-page subtree -- so these rules must be top-level, not nested under
+ .tramo-page, or they never match the portaled DOM. */
+.tramo-template-list {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
- &:hover {
- border-color: var(--accent-bright, #3b82f6);
- background: rgba(128, 128, 128, 0.06);
- }
+.tramo-template {
+ display: flex;
+ flex-direction: column;
+ gap: 3px;
+ text-align: left;
+ width: 100%;
+ padding: 12px 14px;
+ border-radius: var(--radius, 8px);
+ border: 1px solid var(--border, rgba(128, 128, 128, 0.3));
+ background: transparent;
+ color: inherit;
+ cursor: pointer;
+ transition: border-color 0.15s ease, background 0.15s ease;
+
+ &:hover {
+ border-color: var(--accent-bright, #3b82f6);
+ background: rgba(128, 128, 128, 0.06);
+ }
- &:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- }
+ &:disabled {
+ opacity: 0.6;
+ cursor: not-allowed;
+ }
- &__name {
- font-weight: 600;
- }
+ &__name {
+ font-weight: 600;
+ }
- &__desc {
- font-size: 12.5px;
- opacity: 0.7;
- }
+ &__desc {
+ font-size: 12.5px;
+ opacity: 0.7;
}
}