Skip to content

Commit

Permalink
Merge pull request #421 from DishpitDev/staging
Browse files Browse the repository at this point in the history
v0.7.2
  • Loading branch information
Dishpit authored Jan 12, 2025
2 parents 71871fa + 9b0dc5f commit 90ab4d4
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 10 deletions.
Binary file modified Slopify/src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square107x107Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square142x142Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square284x284Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square30x30Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square310x310Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square71x71Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/Square89x89Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Slopify/src-tauri/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Slopify/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Slopify",
"version": "0.7.0",
"version": "0.7.2",
"identifier": "com.slopify.app",
"build": {
"beforeDevCommand": "npm run dev",
Expand All @@ -12,7 +12,7 @@
"app": {
"windows": [
{
"title": "Slopify | v0.7.0",
"title": "Slopify | v0.7.2",
"minWidth": 900,
"minHeight": 800,
"center": true,
Expand Down
34 changes: 26 additions & 8 deletions Slopify/src/components/MessageForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function MessageForm() {
}
};

const handleEmojiClick = (emojiKey) => {
const handleEmojiClick = (event, emojiKey) => {
const emojiText = `:${emojiKey}:`;
const newMessage = message + emojiText;
const newCharCount = 1000 - newMessage.length;
Expand All @@ -53,8 +53,10 @@ export default function MessageForm() {
setCharCount(newCharCount);
}

setEmojiPickerVisible(false);
}
if (!event.shiftKey) {
setEmojiPickerVisible(false);
}
};

const getColor = () => {
if (charCount <= 0) return "black";
Expand All @@ -63,12 +65,28 @@ export default function MessageForm() {
return "white";
};

useEffect(() => {
}, [charCount]);
useEffect(() => {}, [charCount]);

return (
<form onSubmit={handleSubmit} style={{ marginTop: "1rem", position: "relative", width: "100%", display: "flex", flexDirection: "row", alignItems: "center" }}>
<div style={{ position: "relative", display: "flex", alignItems: "center", width: "100%" }}>
<form
onSubmit={handleSubmit}
style={{
marginTop: "1rem",
position: "relative",
width: "100%",
display: "flex",
flexDirection: "row",
alignItems: "center",
}}
>
<div
style={{
position: "relative",
display: "flex",
alignItems: "center",
width: "100%",
}}
>
<input
type="text"
placeholder="Message your fellow sloppers..."
Expand Down Expand Up @@ -119,7 +137,7 @@ export default function MessageForm() {
alt={emojiKey}
title={emojiKey}
style={{ width: "40px", height: "40px", cursor: "pointer" }}
onClick={() => handleEmojiClick(emojiKey)}
onClick={(event) => handleEmojiClick(event, emojiKey)}
/>
))}
</div>
Expand Down

0 comments on commit 90ab4d4

Please sign in to comment.