Skip to content

Commit dd49428

Browse files
Merge pull request #510 from tvesha09/staging
fix: resolve inconsistent subject-count tag size in search dropdown
2 parents 9d5e0d3 + bc041eb commit dd49428

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Searchbar/searchbar-child.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ function SearchBarChild({
171171
>
172172
<div
173173
id="paper_count"
174-
className="mr-4 flex h-8 w-8 items-center justify-center rounded-md bg-[#171720] text-xs font-semibold text-white"
174+
className="mr-4 flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-[#171720] text-xs font-semibold text-white"
175175
>
176176
{suggestion.count}
177177
</div>
178178

179179
<span
180180
id="subject"
181-
className="items-center text-sm tracking-wide text-black dark:text-white sm:text-base"
181+
className="flex-1 min-w-0 flex items-center text-sm tracking-wide text-black dark:text-white sm:text-base"
182182
>
183183
{(() => {
184184
const codeMatch = /\[[^\]]+\]$/.exec(suggestion.name);

0 commit comments

Comments
 (0)