2 Commits

Author SHA1 Message Date
mac
046f144896 v1.3.5 — 日期+日历同步右对齐
- panel-header-right 包裹日期和按钮,靠右排列不分散
2026-06-04 15:14:52 +08:00
mac
ba592c07b7 v1.3.4 — 日历同步按钮紧挨日期输入框 2026-06-04 15:12:36 +08:00
2 changed files with 13 additions and 4 deletions

View File

@@ -428,6 +428,12 @@ body {
letter-spacing: -0.3px; letter-spacing: -0.3px;
} }
.panel-header-right {
display: flex;
align-items: center;
gap: 6px;
}
.check-date-input { .check-date-input {
padding: 8px 14px; padding: 8px 14px;
border: 1.5px solid var(--border); border: 1.5px solid var(--border);
@@ -551,6 +557,7 @@ body {
transition: all 0.2s; transition: all 0.2s;
flex-shrink: 0; flex-shrink: 0;
font-family: inherit; font-family: inherit;
margin-left: 6px;
} }
.btn-cal-sync:hover { .btn-cal-sync:hover {
border-color: var(--primary); border-color: var(--primary);

View File

@@ -125,10 +125,12 @@
<section class="panel active" id="panel-daily"> <section class="panel active" id="panel-daily">
<div class="panel-header"> <div class="panel-header">
<h2>每日打卡</h2> <h2>每日打卡</h2>
<button class="btn-cal-sync" onclick="syncCalendar()" title="同步钉钉日历"> <div class="panel-header-right">
<svg class="icon-sm"><use href="#icon-calendar"/></svg> 日历同步 <input type="date" id="check-date" class="check-date-input" onchange="loadCheckin()">
</button> <button class="btn-cal-sync" onclick="syncCalendar()" title="同步钉钉日历">
<input type="date" id="check-date" class="check-date-input" onchange="loadCheckin()"> <svg class="icon-sm"><use href="#icon-calendar"/></svg> 日历同步
</button>
</div>
</div> </div>
<div class="daily-grid"> <div class="daily-grid">
<div class="card card-morning"> <div class="card card-morning">