@rpg-engine/long-bow 0.8.76 → 0.8.78
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/dist/long-bow.cjs.development.js +3 -7
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +3 -7
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DailyTasks/DailyTasks.tsx +8 -25
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.78",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"dependencies": {
|
|
85
85
|
"@capacitor/core": "^6.1.0",
|
|
86
86
|
"@rollup/plugin-image": "^2.1.1",
|
|
87
|
-
"@rpg-engine/shared": "^0.10.
|
|
87
|
+
"@rpg-engine/shared": "^0.10.24",
|
|
88
88
|
"dayjs": "^1.11.2",
|
|
89
89
|
"font-awesome": "^4.7.0",
|
|
90
90
|
"fs-extra": "^10.1.0",
|
|
@@ -112,21 +112,21 @@ export const DailyTasks: React.FC<IDailyTasksProps> = ({
|
|
|
112
112
|
return filtered.sort((a, b) => {
|
|
113
113
|
const aIsPinned = pinnedTasks.includes(a.key);
|
|
114
114
|
const bIsPinned = pinnedTasks.includes(b.key);
|
|
115
|
-
|
|
115
|
+
|
|
116
116
|
// Pinned tasks always come first
|
|
117
117
|
if (aIsPinned && !bIsPinned) return -1;
|
|
118
118
|
if (!aIsPinned && bIsPinned) return 1;
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
// If both are pinned or both are not pinned, sort by status priority
|
|
121
121
|
const statusPriority = {
|
|
122
122
|
[TaskStatus.InProgress]: 1,
|
|
123
123
|
[TaskStatus.Completed]: 2,
|
|
124
124
|
[TaskStatus.NotStarted]: 3,
|
|
125
125
|
};
|
|
126
|
-
|
|
126
|
+
|
|
127
127
|
const aPriority = statusPriority[a.status] || 4;
|
|
128
128
|
const bPriority = statusPriority[b.status] || 4;
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
return aPriority - bPriority;
|
|
131
131
|
});
|
|
132
132
|
}, [localTasks, searchQuery, selectedStatus, pinnedTasks]);
|
|
@@ -137,8 +137,8 @@ export const DailyTasks: React.FC<IDailyTasksProps> = ({
|
|
|
137
137
|
onCloseButton={onClose}
|
|
138
138
|
cancelDrag=".tasks-container"
|
|
139
139
|
scale={scale}
|
|
140
|
-
width={
|
|
141
|
-
height={
|
|
140
|
+
width={'max(50vw, 900px)'}
|
|
141
|
+
height={'min(85vh, 800px)'}
|
|
142
142
|
isMobile={isMobile}
|
|
143
143
|
>
|
|
144
144
|
<TaskTitle isMobile={isMobile}>Daily Tasks</TaskTitle>
|
|
@@ -210,20 +210,8 @@ export const DailyTasks: React.FC<IDailyTasksProps> = ({
|
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
const TasksContainer = styled(DraggableContainer) <{ isMobile: boolean }>`
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
top: 0 !important;
|
|
216
|
-
left: 0 !important;
|
|
217
|
-
right: 0 !important;
|
|
218
|
-
bottom: 0 !important;
|
|
219
|
-
width: 100vw !important;
|
|
220
|
-
height: 100vh !important;
|
|
221
|
-
margin: 0 !important;
|
|
222
|
-
z-index: 1000 !important;
|
|
223
|
-
` : `
|
|
224
|
-
margin: 0 auto;
|
|
225
|
-
min-width: 50vw;
|
|
226
|
-
`}
|
|
213
|
+
margin: 0 auto;
|
|
214
|
+
min-width: 50vw;
|
|
227
215
|
|
|
228
216
|
.rpgui-container-title {
|
|
229
217
|
width: 100%;
|
|
@@ -238,11 +226,6 @@ const TasksContainer = styled(DraggableContainer) <{ isMobile: boolean }>`
|
|
|
238
226
|
padding: 0 !important;
|
|
239
227
|
overflow: hidden !important;
|
|
240
228
|
background-color: rgba(30, 30, 30, 0.98) !important;
|
|
241
|
-
${props => props.isMobile ? `
|
|
242
|
-
border-radius: 0 !important;
|
|
243
|
-
height: 100vh !important;
|
|
244
|
-
width: 100vw !important;
|
|
245
|
-
` : ''}
|
|
246
229
|
}
|
|
247
230
|
`;
|
|
248
231
|
|