Skip to content

Commit

Permalink
Merge pull request #11 from Merlin04/fix-overflow
Browse files Browse the repository at this point in the history
Fix overflow bug
  • Loading branch information
kawamataryo committed Jan 29, 2022
2 parents fe18f07 + fc78ffa commit b9f04a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ node_modules
src/auto-imports.d.ts
src/components.d.ts
components.d.ts
yarn.lock
6 changes: 3 additions & 3 deletions src/components/PageSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ TODO:Split the component into the following units
@keydown.esc.prevent="onEsc"
>
</div>
<nav class="m overflow-scroll h-full" role="navigation">
<nav class="m h-full" role="navigation">
<template v-if="searchResult.length">
<ul class="pl-0">
<li
v-for="(result, i) in searchResult"
:key="i"
:ref="el => { if (el) searchResultRefs[i] = el }"
:ref="el => { if (el) searchResultRefs[i] = el as HTMLElement }"
:aria-selected="i === selectedNumber"
class="block"

Expand All @@ -60,7 +60,7 @@ TODO:Split the component into the following units
<template v-if="searchWord">
<ul class="pl-0">
<li
:ref="el => { if (el) searchResultRefs[0] = el }"
:ref="el => { if (el) searchResultRefs[0] = el as HTMLElement }"
:aria-selected="true"
class="block rounded-5px"
:data-url="`https://www.google.com/search?q=${searchWordFallback}`"
Expand Down
2 changes: 1 addition & 1 deletion src/popup/Popup.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<main class="w-700px h-440px flex bg-white dark:bg-gray-800 text-gray-600 dark:text-bg-gray-100">
<main class="w-700px h-440px flex bg-white dark:bg-gray-800 text-gray-600 dark:text-bg-gray-100 overflow-hidden">
<div class="w-650px">
<PageSearch v-if="currentPage === PAGES.SEARCH" :search-items="searchItems" />
<PageInfo v-if="currentPage === PAGES.INFO" />
Expand Down

0 comments on commit b9f04a2

Please sign in to comment.