From 37633363c71e5acf07ada2f22405db888561cae8 Mon Sep 17 00:00:00 2001 From: katungi Date: Tue, 20 Feb 2024 18:22:44 +0300 Subject: [PATCH] feat: minor edits --- src-tauri/src/main.rs | 7 +++++-- src-tauri/tauri.conf.json | 2 +- src/components/TextCard.tsx | 2 +- src/pages/index.tsx | 22 ++++++++-------------- src/styles/globals.css | 1 - 5 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 8121be3..e096ce3 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,8 +1,8 @@ use std::time::{SystemTime, UNIX_EPOCH}; use tauri::{Manager, SystemTray, SystemTrayEvent, SystemTrayMenu}; +use tauri_plugin_autostart::MacosLauncher; use tauri_plugin_positioner::{Position, WindowExt}; use window_vibrancy::{apply_vibrancy, NSVisualEffectMaterial}; -use tauri_plugin_autostart::MacosLauncher; #[cfg_attr( all(not(debug_assertions), target_os = "windows"), @@ -24,7 +24,10 @@ fn main() { tauri::Builder::default() .plugin(tauri_plugin_clipboard::init()) .plugin(tauri_plugin_positioner::init()) - .plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]))) + .plugin(tauri_plugin_autostart::init( + MacosLauncher::LaunchAgent, + Some(vec!["--flag1", "--flag2"]), + )) .system_tray(SystemTray::new().with_menu(system_tray_menu)) .on_system_tray_event(|app, event| { tauri_plugin_positioner::on_tray_event(app, &event); diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index feab84c..657a7cd 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -64,7 +64,7 @@ "fullscreen": false, "resizable": false, "title": "Pasta", - "width": 500, + "width": 400, "height": 300, "transparent": true, "alwaysOnTop": false, diff --git a/src/components/TextCard.tsx b/src/components/TextCard.tsx index 65e6c1a..67b51f5 100644 --- a/src/components/TextCard.tsx +++ b/src/components/TextCard.tsx @@ -4,7 +4,7 @@ interface TextCardProps { } export const TextCard: React.FC = ({ text, index }: TextCardProps) => ( -
+

{text}

) \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 06b07b3..745ac54 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -43,28 +43,22 @@ const Home: NextPage = () => { }, []); return ( -
+
- - {/* - No Result found. +
+
Search the clipboard...
+
+
+
{ - clips.reverse().map((clip, index) => { + clips?.reverse()?.map((clip, index) => { return ( ) } ) } - */} - { - clips?.reverse()?.map((clip, index) => { - return ( - - ) - } - ) - } +
) diff --git a/src/styles/globals.css b/src/styles/globals.css index 454808b..f8ec2bc 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -14,7 +14,6 @@ body { padding: 0; box-sizing: border-box; background: transparent; - border-radius: 50px; } .arrow {