poi-plugin-quest-info-2 0.8.6 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poi-plugin-quest-info-2",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "private": false,
5
5
  "description": "show quest info",
6
6
  "homepage": "https://github.com/lawvs/poi-plugin-quest-2/",
package/src/Toolbar.tsx CHANGED
@@ -106,7 +106,7 @@ const useInputStringFilter = () => {
106
106
  }
107
107
  const text = `${quest.docQuest.code} ${quest.docQuest.name} ${
108
108
  quest.docQuest.desc
109
- } ${quest.docQuest.memo ?? ''}`
109
+ } ${quest.docQuest.memo ?? ''} ${quest.docQuest.memo2 ?? ''}`
110
110
  return searchKeywords.some((keyword) =>
111
111
  text.toUpperCase().includes(keyword)
112
112
  )
@@ -9,6 +9,29 @@ import { QuestCard } from './QuestCard'
9
9
 
10
10
  const QuestListWrapper = styled.div`
11
11
  flex: 1;
12
+ overflow: hidden;
13
+ `
14
+
15
+ // CSS - Overflow: Scroll; - Always show vertical scroll bar?
16
+ // See https://stackoverflow.com/questions/7492062/css-overflow-scroll-always-show-vertical-scroll-bar
17
+ const ListWrapper = styled(List)`
18
+ overflow
19
+ -webkit-overflow-scrolling: auto;
20
+
21
+ ::-webkit-scrollbar {
22
+ -webkit-appearance: none;
23
+ width: 8px;
24
+ }
25
+
26
+ ::-webkit-scrollbar-thumb {
27
+ border-radius: 4px;
28
+ background-color: rgba(1, 1, 1, 0.3);
29
+ }
30
+
31
+ ::-webkit-scrollbar {
32
+ border-radius: 4px;
33
+ background-color: rgba(1, 1, 1, 0.1);
34
+ }
12
35
  `
13
36
 
14
37
  export const QuestList = ({ quests }: { quests: UnionQuest[] }) => {
@@ -72,7 +95,7 @@ export const QuestList = ({ quests }: { quests: UnionQuest[] }) => {
72
95
  <QuestListWrapper>
73
96
  <AutoSizer>
74
97
  {({ height, width }) => (
75
- <List
98
+ <ListWrapper
76
99
  ref={listRef}
77
100
  height={height}
78
101
  width={width}
@@ -81,7 +104,7 @@ export const QuestList = ({ quests }: { quests: UnionQuest[] }) => {
81
104
  itemSize={getRowHeight}
82
105
  >
83
106
  {Row}
84
- </List>
107
+ </ListWrapper>
85
108
  )}
86
109
  </AutoSizer>
87
110
  </QuestListWrapper>