From dd0715e9ec800320099050ec23563d4a77f501fc Mon Sep 17 00:00:00 2001 From: usmannasir Date: Sat, 12 Apr 2025 15:25:24 +0500 Subject: [PATCH] fix issue with design on n8n page --- .../websiteFunctions/DockerSiteHome.html | 159 ++++++++++++++++-- 1 file changed, 145 insertions(+), 14 deletions(-) diff --git a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html index 577cd62d1..aa9f167ed 100644 --- a/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html +++ b/websiteFunctions/templates/websiteFunctions/DockerSiteHome.html @@ -376,10 +376,17 @@ /* Icon fixes */ .fa { display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + + .btn .fa { + position: relative; + top: 1px; margin-right: 5px; - font-size: 14px; - width: 16px; - text-align: center; } /* Container header icon styling */ @@ -468,6 +475,130 @@ margin-right: 6px; display: inline-block; } + + .icon-fixes .fa { + font: normal normal normal 14px/1 FontAwesome; + display: inline-block; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + margin-right: 5px; + } + + /* Icon overrides for compatibility */ + .fa-file-text-o:before { + content: "\f15c"; + } + + .fa-bar-chart:before { + content: "\f080"; + } + + .fa-exchange:before { + content: "\f0ec"; + } + + .fa-hdd-o:before { + content: "\f0a0"; + } + + .fa-code:before { + content: "\f121"; + } + + .fa-server:before { + content: "\f233"; + } + + .fa-cubes:before { + content: "\f1b3"; + } + + .fa-cube:before { + content: "\f1b2"; + } + + /* Fix status indicators with explicit colors */ + .status-running { + background-color: #2ecc71; + display: inline-block; + width: 8px; + height: 8px; + border-radius: 50%; + margin-right: 5px; + } + + .status-stopped { + background-color: #e74c3c; + display: inline-block; + width: 8px; + height: 8px; + border-radius: 50%; + margin-right: 5px; + } + + /* Improve container card header to ensure consistent spacing */ + .container-header h3 { + margin: 0; + font-size: 18px; + display: flex; + align-items: center; + } + + .container-header h3 .fa { + margin-right: 8px; + font-size: 16px; + } + + /* Replace specific icon declarations for compatibility */ + .fa-bar-chart:before { + content: "\f080"; /* fa-bar-chart */ + } + + .fa-exchange:before { + content: "\f0ec"; /* fa-exchange */ + } + + .fa-hdd-o:before { + content: "\f0a0"; /* fa-hdd-o */ + } + + .fa-code:before { + content: "\f121"; /* fa-code */ + } + + .fa-file-text-o:before { + content: "\f15c"; /* fa-file-text-o */ + } + + .fa-info-circle:before { + content: "\f05a"; /* fa-info-circle */ + } + + .fa-warning:before { + content: "\f071"; /* fa-warning/exclamation-triangle */ + } + + .fa-exclamation-triangle:before { + content: "\f071"; /* fa-exclamation-triangle */ + } + + .fa-server:before { + content: "\f233"; /* fa-server */ + } + + .fa-plus:before { + content: "\f067"; /* fa-plus */ + } + + .fa-save:before { + content: "\f0c7"; /* fa-save/floppy-o */ + } + + .fa-times:before { + content: "\f00d"; /* fa-times */ + } -
+

- {% trans "Containers" %} + {% trans "Containers" %} @@ -510,7 +641,7 @@

{% trans "Manage containers on server" %}

- {% trans "Create Container" %} + {% trans "Create Container" %}
@@ -660,7 +791,7 @@
-

+

n8n Container: {$ web.name $} @@ -691,7 +822,7 @@
-

Resource Usage

+

Resource Usage

Memory Usage
@@ -777,7 +908,7 @@
-

Environment Variables

+

Environment Variables

@@ -864,7 +995,7 @@
-

Resource Usage

+

Resource Usage

@@ -946,7 +1077,7 @@
-

Environment Variables

+

Environment Variables

@@ -998,7 +1129,7 @@