Skip to content

Commit

Permalink
feat: minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
katungi committed Feb 20, 2024
1 parent 7ba358b commit 3763336
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
7 changes: 5 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -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"),
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"fullscreen": false,
"resizable": false,
"title": "Pasta",
"width": 500,
"width": 400,
"height": 300,
"transparent": true,
"alwaysOnTop": false,
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
22 changes: 8 additions & 14 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
Expand Down
1 change: 0 additions & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ body {
padding: 0;
box-sizing: border-box;
background: transparent;
border-radius: 50px;
}

.arrow {
Expand Down

0 comments on commit 3763336

Please sign in to comment.