diff --git a/src/components/views/WorkshopView.tsx b/src/components/views/WorkshopView.tsx index 67baee4..1279a36 100644 --- a/src/components/views/WorkshopView.tsx +++ b/src/components/views/WorkshopView.tsx @@ -168,68 +168,59 @@ const WorkshopView = memo(function WorkshopView() { animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.95 }} transition={{ duration: config.animationsEnabled ? 0.3 : 0 }} - className="flex flex-col items-center w-full max-w-5xl relative font-['Mojangles'] text-white select-none outline-none focus:outline-none" + className="flex flex-col items-center w-full max-w-6xl relative font-['Mojangles'] text-white select-none outline-none focus:outline-none" > -
-
-
- {ALL_TABS.map((tab) => { - const isActive = tab === activeTab; - return ( - - ); - })} -
+

+ Workshop +

- {!isSearchTab && ( - - Entries: {loading ? '...' : filteredItems.length} - - )} -
+
+ {ALL_TABS.map((tab) => { + const isActive = tab === activeTab; + return ( + + ); + })}
-
+
{isSearchTab ? ( -
+
{ setSearch(e.target.value); setFocusedIdx(null); }} - placeholder="Search all workshop entries..." + placeholder="ENTER KEYWORDS..." spellCheck={false} autoFocus - className="bg-transparent border-none outline-none text-white text-base mc-text-shadow w-full placeholder-white font-['Mojangles']" + className="bg-transparent border-none outline-none text-white text-lg mc-text-shadow w-full placeholder-white/40 font-['Mojangles'] tracking-widest" /> {search && ( )}
- - {search.trim() ? `${filteredItems.length} result${filteredItems.length !== 1 ? 's' : ''}` : ''} -
- {search.trim() && ( -
- {filteredItems.length === 0 ? ( -
- No results -
- ) : ( -
- {filteredItems.map((pkg, i) => ( - setFocusedIdx(i)} - onClick={() => openModal(pkg)} - /> - ))} -
- )} -
- )} +
+ {!search.trim() ? ( +
+ Start typing to search... +
+ ) : filteredItems.length === 0 ? ( +
+ No results +
+ ) : ( +
+ {filteredItems.map((pkg, i) => ( + setFocusedIdx(i)} + onClick={() => openModal(pkg)} + /> + ))} +
+ )} +
) : loading ? ( - Please wait + Searching Archives... ) : error ? ( - {error} - - ) : filteredItems.length === 0 ? ( - - No entries + {error} ) : ( -
- {filteredItems.map((pkg, i) => ( - setFocusedIdx(i)} - onClick={() => openModal(pkg)} - /> - ))} -
+ {filteredItems.length === 0 ? ( +
+ Empty category +
+ ) : ( +
+ {filteredItems.map((pkg, i) => ( + setFocusedIdx(i)} + onClick={() => openModal(pkg)} + /> + ))} +
+ )}
)}
-
+
@@ -589,21 +597,21 @@ function InstallModal({ pkg, onClose, playPressSound }: { onClick={status !== 'installing' ? onClose : undefined} > e.stopPropagation()} - className="flex flex-col w-[480px] font-['Mojangles'] text-white" + className="flex flex-col w-[520px] font-['Mojangles'] text-white border-2 border-[#555] rounded-sm overflow-hidden" style={{ backgroundImage: "url('/images/frame_background.png')", backgroundSize: '100% 100%', imageRendering: 'pixelated', }} > -
- Install to Edition - Select an installed edition for "{pkg.name}" +
+ INSTALL CONTENT + Target Edition for "{pkg.name}"