UI experience tweaks

This commit is contained in:
Tyler Hallada 2022-03-15 19:59:16 -04:00
parent 8e5d2750ec
commit 8c30a7bd92
9 changed files with 35 additions and 12 deletions

View File

@ -34,7 +34,7 @@ const CellModList: React.FC<Props> = ({ mods, counts }) => {
return ( return (
mods && ( mods && (
<> <>
<h2>Mods ({modsWithCounts.length})</h2> <h2>Nexus Mods ({modsWithCounts.length})</h2>
<ul className={styles["mod-list"]}> <ul className={styles["mod-list"]}>
{modsWithCounts {modsWithCounts
.sort((a, b) => b.unique_downloads - a.unique_downloads) .sort((a, b) => b.unique_downloads - a.unique_downloads)

View File

@ -47,9 +47,12 @@ const DataDirPicker: React.FC<Props> = () => {
return ( return (
<> <>
<p className={styles["no-top-margin"]}> <p className={styles["no-top-margin"]}>
Select or drag-and-drop your <code>Data</code> directory below to load Select or drag-and-drop your{" "}
the plugins and see all of the cell edits and conflicts for your current <strong>
mod load order. <code>Data</code>
</strong>{" "}
directory below to load the plugins and see all of the cell edits and
conflicts for your current mod load order.
</p> </p>
<input <input
type="file" type="file"

View File

@ -37,7 +37,7 @@ const PluginModList: React.FC<Props> = ({ mods, files, counts }) => {
return ( return (
mods && ( mods && (
<> <>
<h2>Mods ({modsWithCounts.length})</h2> <h2>Nexus Mods ({modsWithCounts.length})</h2>
<ul className={styles["mod-list"]}> <ul className={styles["mod-list"]}>
{modsWithCounts {modsWithCounts
.sort((a, b) => b.unique_downloads - a.unique_downloads) .sort((a, b) => b.unique_downloads - a.unique_downloads)

View File

@ -34,8 +34,15 @@ const PluginsLoader: React.FC<Props> = () => {
return ( return (
<> <>
<p> <p>
Paste or drag-and-drop your <code>plugins.txt</code> below to sort and Paste or drag-and-drop your{" "}
enable the loaded plugins by your current load order. <strong>
<code>plugins.txt</code>
</strong>{" "}
below to sort and enable the loaded plugins by your current load order.
The plugins.txt file is typically found at{" "}
<strong>
<code>%LOCALAPPDATA%\Skyrim Special Edition\plugins.txt</code>
</strong>
</p> </p>
<button onClick={onPluginsTxtButtonClick} className={styles.button}> <button onClick={onPluginsTxtButtonClick} className={styles.button}>
{!pluginsTxt ? "Paste" : "Edit"} Skyrim plugins.txt file {!pluginsTxt ? "Paste" : "Edit"} Skyrim plugins.txt file
@ -46,10 +53,16 @@ const PluginsLoader: React.FC<Props> = () => {
<h3>Paste plugins.txt</h3> <h3>Paste plugins.txt</h3>
<p> <p>
The plugins.txt file is typically found at{" "} The plugins.txt file is typically found at{" "}
<code> <strong>
C:\Users\username\AppData\Local\Skyrim Special Edition <code>
</code> C:\Users\username\AppData\Local\Skyrim Special Edition
. You can also drag-and-drop the file anywhere on the window to </code>
</strong>{" "}
(or{" "}
<strong>
<code>%LOCALAPPDATA%\Skyrim Special Edition</code>
</strong>
) . You can also drag-and-drop the file anywhere on the window to
load the file. load the file.
</p> </p>
<textarea <textarea

View File

@ -1,4 +1,5 @@
.cell-data-list { .cell-data-list {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin-top: 0;
} }

View File

@ -1,6 +1,7 @@
.mod-list { .mod-list {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin-top: 0;
} }
.mod-list-item { .mod-list-item {

View File

@ -1,6 +1,7 @@
.cell-list { .cell-list {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin-top: 0;
} }
.cell-list-item { .cell-list-item {

View File

@ -1,6 +1,7 @@
.plugin-list { .plugin-list {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin-top: 0;
} }
.plugin-list li { .plugin-list li {
@ -50,6 +51,7 @@
padding-right: 12px; padding-right: 12px;
padding-left: 12px; padding-left: 12px;
justify-content: space-evenly; justify-content: space-evenly;
margin-bottom: 12px;
} }
.buttons button { .buttons button {

View File

@ -1,6 +1,7 @@
.mod-list { .mod-list {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin-top: 0;
} }
.mod-list-item { .mod-list-item {
@ -14,8 +15,9 @@
.file-list { .file-list {
list-style-type: none; list-style-type: none;
padding-left: 8px; padding-left: 8px;
margin-top: 0;
} }
.file-list li { .file-list li {
margin-top: 8px; margin-top: 8px;
} }