feat: 立志/改过卡片增加编辑模式切换按钮
This commit is contained in:
@@ -63,4 +63,8 @@
|
||||
<symbol id="icon-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M8.25 4.5l7.5 7.5-7.5 7.5"/>
|
||||
</symbol>
|
||||
<!-- 铅笔 -->
|
||||
<symbol id="icon-pencil" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"/>
|
||||
</symbol>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.7 KiB |
@@ -104,23 +104,33 @@
|
||||
<div class="daily-grid">
|
||||
<div class="card card-morning">
|
||||
<div class="card-head">
|
||||
<svg class="icon-h2"><use href="#icon-sun"/></svg>
|
||||
<h3>早间立志</h3>
|
||||
<div class="card-head-left">
|
||||
<svg class="icon-h2"><use href="#icon-sun"/></svg>
|
||||
<h3>早间立志</h3>
|
||||
</div>
|
||||
<button class="btn-edit-toggle" onclick="toggleEditMode(this)" title="编辑">
|
||||
<svg class="icon-sm"><use href="#icon-pencil"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
<p class="card-desc">今天最重要的 1~3 件事</p>
|
||||
<div id="morning-list"></div>
|
||||
<button class="btn-add" onclick="addMorning()">
|
||||
<button class="btn-add edit-only" onclick="addMorning()">
|
||||
<svg class="icon-sm"><use href="#icon-plus"/></svg> 增加一条
|
||||
</button>
|
||||
</div>
|
||||
<div class="card card-evening">
|
||||
<div class="card-head">
|
||||
<svg class="icon-h2"><use href="#icon-magnifying-glass"/></svg>
|
||||
<h3>责善 · 改过</h3>
|
||||
<div class="card-head-left">
|
||||
<svg class="icon-h2"><use href="#icon-magnifying-glass"/></svg>
|
||||
<h3>责善 · 改过</h3>
|
||||
</div>
|
||||
<button class="btn-edit-toggle" onclick="toggleEditMode(this)" title="编辑">
|
||||
<svg class="icon-sm"><use href="#icon-pencil"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
<p class="card-desc">今天犯的错 & 改进方案(最多5条)</p>
|
||||
<div id="evening-list"></div>
|
||||
<button class="btn-add" onclick="addEvening()">
|
||||
<button class="btn-add edit-only" onclick="addEvening()">
|
||||
<svg class="icon-sm"><use href="#icon-plus"/></svg> 增加一条
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user