diff --git a/frontend/bun.lockb b/frontend/bun.lockb index 208bfdf..d69237e 100755 Binary files a/frontend/bun.lockb and b/frontend/bun.lockb differ diff --git a/frontend/package.json b/frontend/package.json index 89ffb63..68a9eed 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,8 @@ "@tauri-apps/plugin-dialog": "~2", "@tauri-apps/plugin-opener": "^2", "clsx": "^2.1.1", - "solid-js": "^1.9.3" + "solid-js": "^1.9.3", + "tailwind-scrollbar-hide": "^2.0.0" }, "devDependencies": { "@biomejs/biome": "^1.9.4", diff --git a/frontend/src-tauri/src/lib.rs b/frontend/src-tauri/src/lib.rs index ac2ed67..1d4a06c 100644 --- a/frontend/src-tauri/src/lib.rs +++ b/frontend/src-tauri/src/lib.rs @@ -117,8 +117,8 @@ pub fn run() { let win_builder = WebviewWindowBuilder::new(app, "main", WebviewUrl::default()) .hidden_title(true) - .inner_size(480.0, 320.0); - + .inner_size(480.0, 360.0) + .resizable(false); // set transparent title bar only when building for macOS #[cfg(target_os = "macos")] let win_builder = win_builder.title_bar_style(TitleBarStyle::Transparent); @@ -135,9 +135,9 @@ pub fn run() { unsafe { let bg_color = NSColor::colorWithRed_green_blue_alpha_( nil, - 250.0 / 255.0, - 250.0 / 255.0, - 250.5 / 255.0, + 245.0 / 255.0, + 245.0 / 255.0, + 245.0 / 255.0, 1.0, ); ns_window.setBackgroundColor_(bg_color); diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index db9e959..2129247 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -27,61 +27,79 @@ function App() { }; return ( -
- setOptions(queryEmojiData(query))} - onChange={(result) => setEmoji(result)} - optionValue="name" - optionLabel="name" - placeholder="Search an emoji…" - itemComponent={(props) => ( - - - {props.item.rawValue.emoji} - - - )} - > - +
+ setOptions(queryEmojiData(query))} + onChange={(result) => setEmoji(result)} + optionValue="name" + optionLabel="name" + placeholder="Search for stuff..." + itemComponent={(props) => ( + + + {props.item.rawValue.emoji} + + + )} > - + + + + } + > - + - } - > - - - - - - - - e.preventDefault()} - > - - - 😬 No emoji found - - - - -
+ + + + + e.preventDefault()} + > + + + 😬 No emoji found + + + + +
+ {/*
Emoji selected: {emoji()?.emoji} {emoji()?.name} +
*/} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ footer
); diff --git a/frontend/src/index.css b/frontend/src/index.css index 622aff8..71bc21a 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -10,7 +10,7 @@ } :root { - @apply bg-neutral-50 text-black rounded-xl; + @apply bg-neutral-100 text-black rounded-xl; font-family: Manrope, sans-serif; font-size: 16px; line-height: 24px; diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index c6e0218..97f179f 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -8,5 +8,8 @@ export default { }, }, }, - plugins: [require("@kobalte/tailwindcss")], + plugins: [ + require("@kobalte/tailwindcss"), + require("tailwind-scrollbar-hide"), + ], };