From e78117676da6bcc30b069c4df2ece66dfe007b5c Mon Sep 17 00:00:00 2001 From: Shaban Kamel Date: Wed, 18 Sep 2024 17:17:28 +0300 Subject: [PATCH] Solara --- solara/lib/core/dashboard/brand/brand.html | 14 ++++++++++++++ .../handler/brand_configurations_manager.rb | 12 ++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/solara/lib/core/dashboard/brand/brand.html b/solara/lib/core/dashboard/brand/brand.html index 6370be5..f91a309 100644 --- a/solara/lib/core/dashboard/brand/brand.html +++ b/solara/lib/core/dashboard/brand/brand.html @@ -48,6 +48,9 @@ .right { position: fixed; width: 20%; + max-height: 600px; /* Set a fixed height */ + overflow-y: auto; /* Enable vertical scrolling */ + padding: 10px; /* Optional: add padding */ } ul { list-style-type: none; @@ -58,8 +61,18 @@ } .index { + list-style-type: none; /* Remove default list styling */ + padding: 0; /* Remove padding */ margin: 40px; } + .index li { + padding: 8px; /* Add some padding to list items */ + border-bottom: 1px solid #eee; /* Optional: add a bottom border */ + } + + .index li:last-child { + border-bottom: none; /* Remove the border from the last item */ + } .index a { color: #0066cc; text-decoration: none; @@ -369,6 +382,7 @@ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); transition: transform 0.2s; display: none; + z-index: 1000; } #error-button:hover { diff --git a/solara/lib/core/dashboard/handler/brand_configurations_manager.rb b/solara/lib/core/dashboard/handler/brand_configurations_manager.rb index 6b219f6..8da86ba 100644 --- a/solara/lib/core/dashboard/handler/brand_configurations_manager.rb +++ b/solara/lib/core/dashboard/handler/brand_configurations_manager.rb @@ -10,18 +10,18 @@ def template_with_key(key) def templates [ - { - key: 'theme', - name: 'Theme Configuration', - input_type: 'color', - path: FilePath.brand_theme(@brand_key) - }, { key: 'brand_config', name: 'Brand Configuration', input_type: 'text', path: FilePath.brand_config(@brand_key) }, + { + key: 'theme', + name: 'Theme Configuration', + input_type: 'color', + path: FilePath.brand_theme(@brand_key) + }, { key: 'android_config', name: 'Android Platform Configuration',