Skip to content

Commit d237948

Browse files
authored
refactor: improve line height style for search results (#46)
优化搜索结果的行高样式。 before: <img width="620" alt="image" src="https://github.com/user-attachments/assets/12250d9e-a7b1-4a4b-8e98-857fa4e2ed84"> after: <img width="621" alt="image" src="https://github.com/user-attachments/assets/43b9c323-1d29-4c47-85b9-79eef0d08f8b"> /kind improvement ```release-note 优化搜索结果的行高样式。 ```
1 parent c5b1d11 commit d237948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/search-widget/src/search-form.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export class SearchForm extends LitElement {
170170
? 'text-white'
171171
: 'text-muted'}"
172172
></span>
173-
<div class="flex-1 space-y-1 min-w-0">
173+
<div class="flex-1 space-y-1.5 min-w-0">
174174
<h2
175175
class="text-sm font-medium ${this.selectedIndex === index
176176
? 'text-white'
@@ -181,7 +181,7 @@ export class SearchForm extends LitElement {
181181
${hit.description
182182
? html`
183183
<p
184-
class="text-xs ${this.selectedIndex === index
184+
class="text-xs leading-6 ${this.selectedIndex === index
185185
? 'text-white/90'
186186
: 'text-muted'}"
187187
>

0 commit comments

Comments
 (0)