Skip to content

Commit

Permalink
refactor: improve line height style for search results (#46)
Browse files Browse the repository at this point in the history
优化搜索结果的行高样式。

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
优化搜索结果的行高样式。
```
  • Loading branch information
ruibaby authored Aug 9, 2024
1 parent c5b1d11 commit d237948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/search-widget/src/search-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class SearchForm extends LitElement {
? 'text-white'
: 'text-muted'}"
></span>
<div class="flex-1 space-y-1 min-w-0">
<div class="flex-1 space-y-1.5 min-w-0">
<h2
class="text-sm font-medium ${this.selectedIndex === index
? 'text-white'
Expand All @@ -181,7 +181,7 @@ export class SearchForm extends LitElement {
${hit.description
? html`
<p
class="text-xs ${this.selectedIndex === index
class="text-xs leading-6 ${this.selectedIndex === index
? 'text-white/90'
: 'text-muted'}"
>
Expand Down

0 comments on commit d237948

Please sign in to comment.