/* +----------------------------------------------------------------------
/* | Static Plugin for ThinkAdmin
/* +----------------------------------------------------------------------
/* | 官方网站: https://thinkadmin.top
/* +----------------------------------------------------------------------
/* | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
/* +----------------------------------------------------------------------
/* | 开源协议 ( https://mit-license.org )
/* | 免责声明 ( https://thinkadmin.top/disclaimer )
/* +----------------------------------------------------------------------
/* | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-static
/* | github 代码仓库：https://github.com/zoujingli/think-plugs-static
/* +----------------------------------------------------------------------
/* | 自定义后台扩展样式，需要在加载 console.css 后载入
/* | 使用 composer require zoujingli/think-plugs-static 时不会更新此文件
/* +---------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 | 下拉列表固定高度：超过 300px 在列表内部滚动，不把页面撑长
 |
 | 主题 console.css 里有一条 .layui-form-selected dl{min-height:fit-content}，
 | 它压过了 layui 自带的 .layui-form-select dl{max-height:300px}——
 | CSS 里 min-height 大于 max-height 时以 min-height 为准，结果「省」这种
 | 31 项的下拉被撑到 1100 多 px（absolute 定位的高度照样计入 scrollHeight），
 | 整个后台页面跟着变长（实测：打开前 800，打开后 1257）。
 | 这里把 min-height 归零、显式限定 max-height，恢复 layui 原本的行为。
 | ------------------------------------------------------------------------- */
.layui-form-select dl {
    max-height: 300px;
    overflow-y: auto;
}

.layui-form-selected dl {
    min-height: 0;
}
