diff --git a/docs/configuration.md b/docs/configuration.md
old mode 100644
new mode 100755
index 2af930e..6083ff1
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -24,6 +24,7 @@ Access settings via **Settings → Compose** in the Unraid web UI.
| **Hide Compose Containers (Dashboard Tile)** | No | Hide containers managed by Compose stacks from Unraid's Docker Containers dashboard tile. This avoids duplicate entries when both tiles are visible. Requires "Show Dashboard Tile". |
| **Hide Compose Containers (Docker Page)** | No | Patch the native Docker UI to hide or filter Compose-managed containers. See the Web UI Patches section for version limitations. |
| **Show Compose Above Docker Containers** | No | When the Docker page is displayed without tabs, move the Compose Stacks section above the built-in Docker Containers section. |
+| **Expand Stacks by Default** | No | Automatically expand all stack detail rows when the page loads. |
### Update Checking
diff --git a/source/compose.manager/compose.manager.settings.page b/source/compose.manager/compose.manager.settings.page
old mode 100644
new mode 100755
index 46b52f2..aee063e
--- a/source/compose.manager/compose.manager.settings.page
+++ b/source/compose.manager/compose.manager.settings.page
@@ -1256,6 +1256,16 @@ $projects_exist = intval(shell_exec("ls -l " . $compose_root . " | grep ^d | wc
+
+
_(Expand Stacks by Default)_:
+
+ >
+
+ When enabled, all stack detail rows will be expanded when the page loads.
+
+
+
+
_(Hide Compose Containers from Docker)_:
diff --git a/source/compose.manager/default.cfg b/source/compose.manager/default.cfg
old mode 100644
new mode 100755
index 69ba2ad..8224f1e
--- a/source/compose.manager/default.cfg
+++ b/source/compose.manager/default.cfg
@@ -20,3 +20,4 @@ BACKUP_SCHEDULE_ENABLED="false"
BACKUP_SCHEDULE_FREQUENCY="daily"
BACKUP_SCHEDULE_TIME="03:00"
BACKUP_SCHEDULE_DAY="1"
+STACKS_DEFAULT_EXPANDED="false"
diff --git a/source/compose.manager/php/compose_list.php b/source/compose.manager/php/compose_list.php
old mode 100644
new mode 100755
index e673faf..f34efce
--- a/source/compose.manager/php/compose_list.php
+++ b/source/compose.manager/php/compose_list.php
@@ -9,6 +9,8 @@
require_once("/usr/local/emhttp/plugins/compose.manager/php/util.php");
// Note: helper functions removed; test suite provides any needed test-local helpers.
+$cfg = parse_plugin_cfg($sName);
+
// Get stack state
$stackstate = shell_exec($plugin_root . "/scripts/compose.sh -c list");
$stackstate = json_decode($stackstate, TRUE);
@@ -280,7 +282,8 @@
$o .= "
";
// Expand arrow on the left (separate from the outer/inner structure)
$o .= "";
- $o .= "";
+ $expandedClass = $cfg['STACKS_DEFAULT_EXPANDED'] == 'true' ? 'expanded' : '';
+ $o .= "";
$o .= "";
// Icon and name using Docker's outer/inner structure
$o .= "";
@@ -331,8 +334,9 @@
$o .= "";
- // Expandable details row (hidden by default)
- $o .= "