Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9660797

Browse files
committed
feat: show ID short on TODO cards
1 parent edbb487 commit 9660797

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

web/css/style.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,20 @@ ul#list-backlogs input[type="checkbox"] {
221221
background-color: #e4d57f;
222222
border-color: #e4d57f;
223223
}
224-
225224
.card-header {
226-
display: block;
225+
display: flex;
227226
font-size: 0.8rem;
227+
justify-content: flex-start;
228+
align-items: center;
229+
min-height: 1rem;
230+
padding: 0.2rem;
231+
}
232+
233+
.card-header .id {
234+
display: inline-block;
235+
margin-left:auto;
236+
padding: 1px 2px;
237+
text-decoration: none;
228238
}
229239
.card-header .board {
230240
display: inline-block;

web/js/todo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ var loadCards = function (strMsg) {
172172
"<div class='card-header'>" +
173173
` <span class="board board-${board.id}"><a href="http://trello.com/b/${board.id}/">${board.name}</a></span>` +
174174
` <span class="badge list list-${item.idList} ${listNameSlug}">${listName}</span>` +
175+
` <span class="id">${item.idShort}</span>` +
175176
"</div>" +
176177
`<div class="card-body ${itemClass}">` +
177178
` <h2><a href="http://trello.com/c/${item.id}" target="_blank">${item.name}</a></h2>` +

0 commit comments

Comments
 (0)