Skip to content

Commit 94efe4a

Browse files
committed
correctly re-merge pack if outside merged folder
1 parent 272090f commit 94efe4a

File tree

10 files changed

+627
-596
lines changed

10 files changed

+627
-596
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "wh3mm",
33
"productName": "wh3mm",
4-
"version": "1.27.1",
4+
"version": "1.27.2",
55
"description": "WH3 Mod Manager",
66
"main": ".webpack/main",
77
"scripts": {

src/CompatScreen.tsx

Lines changed: 218 additions & 215 deletions
Large diffs are not rendered by default.

src/ModDropdown.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ const ModDropdown = memo((props: ModDropdownProps) => {
182182
`${props.isOpen ? "" : "hidden"}` +
183183
` fixed w-44 bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700`
184184
}
185+
style={{
186+
left: props.positionX,
187+
top: props.positionY,
188+
}}
185189
ref={modDropdownRef}
186190
>
187191
<ul className="py-1 text-sm text-gray-700 dark:text-gray-200" aria-labelledby="dropdownDefault">

src/ModRows.tsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@ import React, { useCallback, useState } from "react";
22
import "./index.css";
33
import { useAppDispatch, useAppSelector } from "./hooks";
44
import { toggleMod, enableAll, disableAll, setModLoadOrder, resetModLoadOrder } from "./appSlice";
5-
import classNames from "classnames";
65
import { Alert, Tooltip } from "flowbite-react";
7-
import { formatDistanceToNow } from "date-fns";
8-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
9-
import { faGrip, faEraser, faCamera, faFileArchive } from "@fortawesome/free-solid-svg-icons";
106
import { getFilteredMods, sortByNameAndLoadOrder } from "./modSortingHelpers";
117
import { FloatingOverlay } from "@floating-ui/react-dom-interactions";
128
import ModDropdown from "./ModDropdown";
139
import { isModAlwaysEnabled } from "./modsHelpers";
1410
import * as modRowSorting from "./utility/modRowSorting";
1511
import { SortingType } from "./utility/modRowSorting";
16-
import { HiOutlineCollection } from "react-icons/hi";
1712
import ModRow from "./ModRow";
1813

1914
let currentDragTarget: Element;
@@ -42,11 +37,10 @@ export default function ModRows() {
4237
const filter = useAppSelector((state) => state.app.filter);
4338
const hiddenMods = useAppSelector((state) => state.app.hiddenMods);
4439
const alwaysEnabledMods = useAppSelector((state) => state.app.alwaysEnabledMods);
45-
const isDev = useAppSelector((state) => state.app.isDev);
4640
const isAuthorEnabled = useAppSelector((state) => state.app.isAuthorEnabled);
4741
const areThumbnailsEnabled = useAppSelector((state) => state.app.areThumbnailsEnabled);
4842

49-
const [sortingType, setSortingType] = useState<SortingType>(SortingType.IsEnabled);
43+
const [sortingType, setSortingType] = useState<SortingType>(SortingType.Ordered);
5044
const [isDropdownOpen, setIsDropdownOpen] = useState<boolean>(false);
5145
const [contextMenuMod, setContextMenuMod] = useState<Mod>();
5246
const [dropdownReferenceElement, setDropdownReferenceElement] = useState<HTMLDivElement>();
@@ -410,7 +404,11 @@ export default function ModRows() {
410404
placement="right"
411405
content="Mods with lower order have priority, don't change unless you really know what you're doing, right click on mod to reset or here to reset all"
412406
>
413-
<span className="text-center w-full">Order</span>
407+
<span
408+
className={`text-center w-full ${modRowSorting.isOrderSort(sortingType) && "font-semibold"}`}
409+
>
410+
Order
411+
</span>
414412
</Tooltip>
415413
</div>
416414
<div
@@ -421,7 +419,11 @@ export default function ModRows() {
421419
>
422420
{modRowSorting.isEnabledSort(sortingType) && modRowSorting.getSortingArrow(sortingType)}
423421
<Tooltip placement="right" content="Right click to enable or disable all mods">
424-
<span className="text-center w-full">Enabled</span>
422+
<span
423+
className={`text-center w-full ${modRowSorting.isEnabledSort(sortingType) && "font-semibold"}`}
424+
>
425+
Enabled
426+
</span>
425427
</Tooltip>
426428
</div>
427429
<div
@@ -437,15 +439,15 @@ export default function ModRows() {
437439
onClick={() => modRowSorting.onPackSort(setSortingType)}
438440
>
439441
{modRowSorting.isPackNameSort(sortingType) && modRowSorting.getSortingArrow(sortingType)}
440-
Pack
442+
<span className={`${modRowSorting.isPackNameSort(sortingType) && "font-semibold"}`}>Pack</span>
441443
</div>
442444

443445
<div
444446
className="flex grid-area-humanName place-items-center pl-1 mod-row-header"
445447
onClick={() => modRowSorting.onNameSort(setSortingType)}
446448
>
447449
{modRowSorting.isHumanNameSort(sortingType) && modRowSorting.getSortingArrow(sortingType)}
448-
Name
450+
<span className={`${modRowSorting.isHumanNameSort(sortingType) && "font-semibold"}`}>Name</span>
449451
</div>
450452
<div
451453
className={
@@ -455,14 +457,16 @@ export default function ModRows() {
455457
onClick={() => modRowSorting.onAuthorSort(setSortingType)}
456458
>
457459
{modRowSorting.isAuthorSort(sortingType) && modRowSorting.getSortingArrow(sortingType)}
458-
Author
460+
<span className={`${modRowSorting.isAuthorSort(sortingType) && "font-semibold"}`}>Author</span>
459461
</div>
460462
<div
461463
className="flex grid-area-autohide place-items-center pl-1 mod-row-header rounded-tr-xl"
462464
onClick={() => modRowSorting.onLastUpdatedSort(setSortingType)}
463465
>
464466
{modRowSorting.isLastUpdatedSort(sortingType) && modRowSorting.getSortingArrow(sortingType)}
465-
Last Updated
467+
<span className={`${modRowSorting.isLastUpdatedSort(sortingType) && "font-semibold"}`}>
468+
Last Updated
469+
</span>
466470
</div>
467471

468472
{mods

0 commit comments

Comments
 (0)