feat: Refactor page headers in multiple managers for improved layout and consistency; remove global badge styles to support Tabler text colors
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 8m30s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 8m30s
This commit is contained in:
@@ -475,45 +475,37 @@ function ServerManager() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Кнопки управления */}
|
||||
<div className="d-flex flex-wrap gap-2 mb-3 align-items-center">
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-primary d-flex align-items-center"
|
||||
onClick={handleOpenAddServerModal}
|
||||
>
|
||||
<span className="me-2 d-flex align-items-center"><IconPlus className="icon" /></span>
|
||||
<span className="fw-bold">Добавить</span>
|
||||
</button>
|
||||
{/* Пресеты генератора ссылок */}
|
||||
<div className="dropdown">
|
||||
<button className="btn btn-outline-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
||||
Профили ссылок
|
||||
</button>
|
||||
<div className="dropdown-menu">
|
||||
{Object.keys(presets).map(key => (
|
||||
<button key={key} className="dropdown-item" type="button" onClick={() => applyPreset(key)}>{key}</button>
|
||||
))}
|
||||
{/* Page header */}
|
||||
<div className="page-header d-print-none mb-3">
|
||||
<div className="row align-items-center">
|
||||
<div className="col">
|
||||
<h2 className="page-title">Серверы</h2>
|
||||
<div className="page-pretitle">Главная / Управление / Серверы</div>
|
||||
</div>
|
||||
<div className="col-auto ms-auto d-print-none">
|
||||
<div className="btn-list">
|
||||
<div className="dropdown">
|
||||
<button className="btn btn-outline-primary dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
||||
Профили ссылок
|
||||
</button>
|
||||
<div className="dropdown-menu">
|
||||
{Object.keys(presets).map(key => (
|
||||
<button key={key} className="dropdown-item" type="button" onClick={() => applyPreset(key)}>{key}</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" className="btn btn-outline-primary d-flex align-items-center" onClick={exportAllLinks} disabled={servers.length === 0}>
|
||||
<IconDownload className="me-1" /> Экспорт
|
||||
</button>
|
||||
<button type="button" className="btn btn-outline-primary d-flex align-items-center" onClick={handleSaveChanges} disabled={loading}>
|
||||
<IconDatabase className={loading ? 'spin me-1' : 'me-1'} /> Сохранить
|
||||
</button>
|
||||
<button type="button" className="btn btn-primary d-flex align-items-center" onClick={handleOpenAddServerModal}>
|
||||
<IconPlus className="me-1" /> Добавить
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-outline-primary d-flex align-items-center"
|
||||
onClick={handleSaveChanges}
|
||||
disabled={loading}
|
||||
>
|
||||
<span className="me-2 d-flex align-items-center"><IconDatabase className={loading ? 'spin' : ''} /></span>
|
||||
<span className="fw-bold">Сохранить</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-outline-primary d-flex align-items-center"
|
||||
onClick={exportAllLinks}
|
||||
disabled={servers.length === 0}
|
||||
>
|
||||
<span className="me-2 d-flex align-items-center"><IconDownload className="icon" /></span>
|
||||
<span className="fw-bold">Экспорт</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Таблица серверов на всю ширину */}
|
||||
|
||||
Reference in New Issue
Block a user