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<TextCardProps> = ({ text, index }: TextCardProps) => ( - <div className="w-full text-white px-8 p-3 border border-neutral-600 mb-2 mt-2 hover:bg-green-200 hover:text-green-300 rounded-lg" key={index}> + <div className="w-full text-white px-8 p-3 mb-2 mt-2 rounded-lg" key={index}> <p className="">{text}</p> </div> ) \ 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 ( - <div className="flex h-96 arrow"> + <div className="flex h-96 arrow p-3"> <main className="w-full overflow-auto overflow-y-auto"> - - {/* <CommandList> - <CommandEmpty>No Result found.</CommandEmpty> + <div className="h-12"> + <h6 className="text-[#F2F2F2] p-2 px-4">Search the clipboard...</h6> + </div> + <div className="border px-2 border-neutral-600" /> + <div> { - clips.reverse().map((clip, index) => { + clips?.reverse()?.map((clip, index) => { return ( <TextCard text={clip} index={index} key={index} /> ) } ) } - </CommandList> */} - { - clips?.reverse()?.map((clip, index) => { - return ( - <TextCard text={clip} index={index} key={index} /> - ) - } - ) - } + </div> </main> </div> ) 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 {