Skip to content

Commit 4e26d30

Browse files
committed
fix(#507): force fixed width on subject-count badge using shrink-0
1 parent dd220be commit 4e26d30

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)