Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Group Chat Issue (NIP-28) on bundle #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ohager
Copy link

@ohager ohager commented Jun 8, 2023

fixes #5

Additional improvements:

  • minor layout tweaks (I had issues on my app using the widget)
  • introduced a npm run bundle
  • updated some deps, and added in special the ndk dep

I removed the static folder as it seemed redundant to me. Blame me if you need it... I'll put it back.

@@ -1,6 +1,8 @@
.idea
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webstorm stuff

.DS_Store
node_modules
/build
/dist
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new folder on updated svelte kit

"scripts": {
"dev": "vite dev",
"build": "svelte-kit sync && svelte-package",
"bundle": "rimraf ./public && NODE_ENV=production rollup -c",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

making other people lives easier ;)

@@ -40,7 +37,6 @@ export default {
plugins: [tailwindcss(), autoprefixer()],
},
}),
vitePreprocess(),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed

@@ -248,7 +248,7 @@

<div class="
bg-purple-700 text-white
-mx-4 -mt-5 mb-3
-mx-5 -mt-5 mb-3
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-mx-4 caused minor issues in my app...

@@ -311,7 +311,7 @@
{/if}
{/if}

<div id="messages-container" class="overflow-auto -mx-4 px-4" style="height: 50vh; min-height: 300px;">
<div id="messages-container" class="overflow-auto -mx-4 px-4 relative top-[-12px] mb-[-20px]" style="height: calc(50vh + 12px); min-height: 300px;">
Copy link
Author

@ohager ohager Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chat window should now fit pixel-perfectly (tested chrome, brave, and firefox)

<div class="
fixed bottom-5 right-5 mb-5 flex flex-col item-end font-sans
">
<div id="nostri-chat" class="fixed bottom-5 right-5 mb-5 flex flex-col item-end font-sans">
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having an id can be handy

@StellarStoic
Copy link

We are waiting for the merge in hope, this will resolve "GROUP" chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chatId not passed to widget
2 participants