Skip to content

Commit a022eed

Browse files
committed
better style
1 parent e006863 commit a022eed

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

src/client/components/item-row.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010
transition: background-color 0.2s ease;
1111

1212
& .item-controls {
13-
width: 20%;
14-
display: flex;
15-
flex-direction: column;
16-
gap: 2rem;
13+
max-width: 20%;
14+
/* display: flex;
15+
gap: 1rem; */
16+
17+
& .icon {
18+
width: 20px;
19+
padding: 0;
20+
}
1721
}
1822

1923
& new-tab {
@@ -61,8 +65,11 @@
6165

6266
.item-actions {
6367
display: flex;
64-
gap: 0.5rem;
68+
max-width: 100%;
69+
gap: 1rem;
6570
flex-shrink: 0;
71+
flex-wrap: wrap;
72+
justify-content: flex-end;
6673
}
6774

6875
.btn-star {

src/client/components/item-row.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ export const ItemRow:FunctionComponent<{
9999
star
100100
</span>
101101
</button>
102-
</div>
103102
104-
<div class="item-actions">
105103
<button
106104
class="icon"
107105
onClick=${toggleRead}

src/client/routes/feed-reader.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ export const FeedReader:FunctionComponent<{
134134
`}
135135
136136
${items.value.map(item => html`
137-
<li>
138-
<${ItemRow}
139-
key=${item.id}
140-
item=${item}
141-
state=${state}
142-
/>
137+
<li key=${item.id}>
138+
<${ItemRow}
139+
item=${item}
140+
state=${state}
141+
/>
143142
</li>
144143
`)}
145144

0 commit comments

Comments
 (0)