fix: 恢复系统设置侧栏原版样式

恢复系统设置侧栏原版浅色样式,并确保浮层显示在主菜单上方。
This commit is contained in:
chenxi 2026-12-02 13:27:14 +08:00
parent 85bfeb6e73
commit 2230486480
2 changed files with 23 additions and 1 deletions

View File

@ -332,7 +332,7 @@
@stack('settings_menu_start')
<div class="finance-theme-sidebar settings-menu user-menu menu-list fixed h-full overflow-y-unset ltr:-left-80 rtl:-right-80">
<div class="settings-menu user-menu menu-list fixed h-full overflow-y-unset z-30 ltr:-left-80 rtl:-right-80">
@stack('settings_menu_title_start')
<div class="flex items-center mb-3">

View File

@ -0,0 +1,22 @@
<?php
namespace Tests\Feature\SystemSettings;
use Tests\Feature\FeatureTestCase;
class SettingsSidebarStyleTest extends FeatureTestCase
{
public function test_settings_sidebar_keeps_original_light_style_and_floats_above_main_menu(): void
{
$html = $this->loginAs()
->get(route('system-settings.users.index'))
->assertOk()
->getContent();
$this->assertMatchesRegularExpression(
'/<div class="settings-menu user-menu menu-list fixed h-full overflow-y-unset z-30[^"]*">/',
$html
);
$this->assertStringNotContainsString('finance-theme-sidebar settings-menu', $html);
}
}