diff --git a/src-tauri/src/data.rs b/src-tauri/src/data.rs index a059124..e29e2f0 100644 --- a/src-tauri/src/data.rs +++ b/src-tauri/src/data.rs @@ -35,9 +35,9 @@ pub fn get_notes_list(search: &str) -> Vec { let mut notes = Vec::new(); for note in note_iter.expect("Failed to query notes") { let mut _note = note.expect("Failed to get note"); - _note.text = _note.text.replace("\n", "
").chars().take(57).collect(); + _note.text = _note.text.replace("\n", "
").chars().take(40).collect(); - if _note.text.len() >= 57 { + if _note.text.len() >= 40 { _note.text.push_str("..."); } diff --git a/src/main.js b/src/main.js index cbe7620..4cd5081 100644 --- a/src/main.js +++ b/src/main.js @@ -44,9 +44,9 @@ async function get_notes_list() { -

${note.title}

+

${note.title}

-

${new Date(note.created_at).toDateString()} ${new Date(note.created_at).toLocaleTimeString().split(':')[0]}:${new Date(note.created_at).toLocaleTimeString().split(':')[1]}

+

${new Date(note.created_at).toDateString()} ${new Date(note.created_at).toLocaleTimeString().split(':')[0]}:${new Date(note.created_at).toLocaleTimeString().split(':')[1]}

${note.text}

diff --git a/src/styles_default.css b/src/styles_default.css index f572ba8..c6013b3 100644 --- a/src/styles_default.css +++ b/src/styles_default.css @@ -16,6 +16,7 @@ body { width: 100vw; height: 100vh; overflow: hidden; + font-size: 0.8rem; } .app-shell { @@ -204,8 +205,6 @@ input:focus { justify-content: center; border-radius: 10px; padding: 0.6rem; - transition: background-color 0.1s ease; - } .button .icon { @@ -255,9 +254,7 @@ input:focus { display: flex; flex-direction: column; justify-content: space-between; - align-items: stretch; - transition: background-color 0.1s ease; - + align-items: stretch; } .notes-list div div { @@ -294,7 +291,7 @@ input:focus { position: absolute; right: 1rem; bottom: 1rem; - width: 2rem; - height: 2rem; + width: 1.5rem; + height: 1.5rem; background-color: var(--color-accent); } \ No newline at end of file