revert(ui): move Doctor trigger back to the page toolbar

Undo the Doctor relocation from fe160134 while keeping that commit's
unrelated header changes (full-width header, 32px click targets,
role/tabindex plus Enter/Space activation).

- Restore the .doctor-control-group button in controls.html
- Drop the .doctor-toggle icon and the hamburger menu entry from the header
- Remove the Header.js 'doctor' dropdown action forwarding to the button
- Drop the header-scoped doctor-toggle styles
- Restore the .doctor-trigger styles (desktop and mobile) in doctor-modal.css
This commit is contained in:
Will Miao
2026-09-13 08:13:55 +08:00
parent f3b3393a16
commit 0e789cb38c
5 changed files with 26 additions and 38 deletions
+7
View File
@@ -144,6 +144,13 @@
</button>
</div>
{% endif %}
<div class="control-group doctor-control-group">
<button id="doctorTriggerBtn" class="doctor-trigger" title="{{ t('doctor.buttonTitle', default='Run diagnostics and common fixes') }}">
<i class="fas fa-stethoscope"></i>
<span>{{ t('doctor.title', default='Doctor') }}</span>
<span id="doctorStatusBadge" class="doctor-status-badge hidden" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
-10
View File
@@ -74,12 +74,6 @@
<!-- Right section: Controls -->
<div class="header-right">
<div class="header-controls" id="headerControls">
<div class="doctor-toggle" id="doctorTriggerBtn" role="button" tabindex="0"
title="{{ t('doctor.buttonTitle', default='Run diagnostics and common fixes') }}"
aria-label="{{ t('doctor.title', default='Doctor') }}">
<i class="fas fa-stethoscope"></i>
<span id="doctorStatusBadge" class="doctor-status-badge hidden" aria-hidden="true"></span>
</div>
<div class="theme-toggle" role="button" tabindex="0" title="{{ t('header.theme.toggle') }}"
aria-label="{{ t('header.theme.toggle') }}">
<i class="fas fa-moon dark-icon"></i>
@@ -127,10 +121,6 @@
<i class="fas fa-bell"></i>
<span>{{ t('header.actions.notifications') }}</span>
</div>
<div class="dropdown-item" data-action="doctor">
<i class="fas fa-stethoscope"></i>
<span>{{ t('doctor.title', default='Doctor') }}</span>
</div>
<div class="dropdown-divider"></div>
<div class="dropdown-item" data-action="support">
<i class="fas fa-heart"></i>