From a32c585c0759f4bbbac91decacec8807e56a9666 Mon Sep 17 00:00:00 2001 From: avidrucker Date: Tue, 21 Nov 2023 22:35:41 -0500 Subject: [PATCH] adjust line height, padding --- src/App.css | 8 +++++ src/App.js | 96 +++++++++++++++++++++++++++---------------------- src/TodoItem.js | 2 +- src/index.css | 3 +- 4 files changed, 65 insertions(+), 44 deletions(-) diff --git a/src/App.css b/src/App.css index bdd4d0b..9d584ee 100644 --- a/src/App.css +++ b/src/App.css @@ -6,6 +6,10 @@ height: 1.5rem; } +.lh-135 { + line-height: 1.35rem; +} + .tracked-custom { letter-spacing: .05em; } @@ -75,4 +79,8 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; +} + +.flex-1 { + flex: 1; } \ No newline at end of file diff --git a/src/App.js b/src/App.js index bf2dff6..6256734 100644 --- a/src/App.js +++ b/src/App.js @@ -19,17 +19,19 @@ const queryStringListOffset = 100; const initialTasksListOffset = 200; const appName = "AutoFocus"; -const infoString2 = "AutoFocus was designed by Mark Forster. This web app was built by Avi Drucker using ReactJS, Font Awesome, and Tachyons."; -const infoString1 = "The AutoFocus algorithm was designed as a pen and paper method to help increase productivity. It does so by limiting list interaction to a minimum, and by providing a simple (binary) decision-making framework."; +const infoString2 = "This web app was built by Avi Drucker using ReactJS, Font Awesome, and Tachyons."; +const infoString1 = "The AutoFocus algorithm was designed by Mark Forster as a pen and paper method to help increase productivity. It does so by limiting list interaction and providing a simple (binary) decision-making framework."; const saveInfo1 = "You can import and export JSON lists into and out of AutoFocus."; const saveInfo2 = "You can also import a list by pasting in raw text below, and then clicking the 'Submit' button."; -const emptyInputErrMsg1 = "New items cannot be empty or whitespace only, please type some text into the text input above and then tap 'Add Task'."; +const emptyInputErrMsg1 = "New items cannot be empty or only whitespace."; const cannotTakeActionErrMsg1 = "There are no actionable tasks in your list."; const emptyTextAreaErrMsg1 = "New items cannot be empty or whitespace only."; const badJSONimportErrMsg1 = "Failed to import tasks. Ensure the JSON file has the correct format."; const nonJSONimportAttemptedErrMsg1 = "Please select a valid JSON file."; const mismatchDetectedMsg1 = "The link list and local storage list do not match. Which will you keep?"; - +const confirmListDelete = "Are you sure you want to delete your list? This action cannot be undone."; +const clickDiskToClose = "Click on the 'disk' icon above to close this window."; +const clickIcircleToClose = "Click on the 'i' icon above to close this window."; function App() { const initialTasks = getFromLocalStorage('tasks', []); @@ -362,7 +364,7 @@ function App() { ; return ( -
+

{appName}

@@ -395,7 +397,7 @@ function App() {
-
+
@@ -415,9 +417,9 @@ function App() {
- {errMsg &&

{errMsg}

} + {errMsg &&

{errMsg}

} -
+
- - +
+
+

{genCurrentQuestion(tasks, cursor)}

+
+ + + +
+
} {/*'are you sure you want to delete your list?' modal*/} {showingDeleteModal && -
-

Are you sure you want to delete your list?

- - +
+
+

{confirmListDelete}

+
+ + +
+
} {/*save modal*/} @@ -483,9 +495,9 @@ function App() {
-

{saveInfo1}

+

{saveInfo1}

-
+