-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
Galley item hide properties/offers #4460
Galley item hide properties/offers #4460
Conversation
…lley-item-hide-properties/offers
…lley-item-hide-properties/offers
✅ Deploy Preview for koda-nuxt ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey!
Let's start with something simple:
- disable
o-tab-item
when there is noMAKE_OFFER
event innft.events
- show tooltip for rmrk if prefix rmrk
- show tooltip for disabled when no event
the tooltip is the heart of where it gets messy the real issue starts when extracting this into a component and needing to put o-tab-item's children where they belong if you will permit it, i can push a working version where the required behavior is working, but it's not extracted into a component should i uncomment the slot so you can see live what is happening? btw, I assume i'm missing some detail regarding the use of slots that f** it up, I'm hoping you may be able to tell what it is with a glance |
Yes, I would rather have directly change
please, let's try to avoid as much as possible css hack 🥺
Are you refering to your |
@roiLeo <o-tab-item value="0" class="py-5">
<template #header> Properties </template>
<o-table
v-if="nftMetadata?.attributes.length"
:data="nftMetadata?.attributes"
hoverable>
<o-table-column v-slot="props" field="value" label="Trait">
{{ props.row.value }}
</o-table-column>
<o-table-column
v-slot="props"
field="trait_type"
:label="$t('tabs.tabProperties.section')">
{{ props.row.trait_type }}
</o-table-column>
</o-table>
</o-tab-item> still, the header tab is empty. when the page loads it shows at first, but then disappears after 1-2 seconds |
Found it! <o-tab-item value="0" class="py-5">
<template #header> Properties </template>
<o-table
v-if="nftMetadata?.attributes.length"
:data="nftMetadata?.attributes"
hoverable>
<o-table-column v-slot="props" field="value" label="Trait">
{{ props.row.value }}
</o-table-column>
<o-table-column
v-slot="props"
field="trait_type"
:label="$t('tabs.tabProperties.section')">
{{ props.row.trait_type }}
</o-table-column>
</o-table>
<div v-else></div>
</o-tab-item> |
Sorry, I didn't knew tooltip wasn't working with disabled tab Let me know if you find something, might be good to open an issue in oruga repo? |
it's ok. I got it already |
@roiLeo but now not working in the app some more details that may help you help me... if i put <o-tooltip
v-if="disabled"
append-to-body
always
class="disabled-tab-tooltip"
position="top"
:label="disabledTooltip"
@click.native.stop>
{{ label }}
</o-tooltip> then when the page renders it looks and then, when hovering over offers tab the tooltip "finds" it's position any ideas? |
I see... anything i can do to help resolve that? |
Could you test when setting |
…lley-item-hide-properties/offers
@roiLeo the only side effect I've found so far is this: on a related issue... how do we deal with responsive font-size (to prevent tooltip from overflowing the screen on mobile) .o-tip__content {
font-size: max(min(2vw, 0.9rem), 0.45rem); but maybe this is not the preferred method? |
It won't really be displayed on mobile, but yes it seems to me to be a good solution as long as you don't use px |
mmm it actually has background already |
it depends whether or not the gallery item in question has the "More of this collection" section the one @exezbcz mentioned doesn't, and then depending on the screen size the footer image either interferes or not setting main z-index to 100, solves this problem but introduces the tooltip on mobile problem I mentioned above |
…lley-item-hide-properties/offers
@roiLeo is there anything more i need to do here? |
Would be top if you could fix https://deploy-preview-4460--koda-nuxt.netlify.app/rmrk/gallery/15527227-B02B8226FEE3EAA06D-ART-BRIDGE-0000000000000001?redesign=true hover not visible. Next, wait for a 2nd approval and it's good to go. |
…lley-item-hide-properties/offers
…om/daiagi/nft-gallery into galley-item-hide-properties/offers
Done ✔️ |
pay 60 usd let's resolve conflicts @daiagi and merge it! :) |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
…lley-item-hide-properties/offers
Code Climate has analyzed commit 54c4c26 and detected 0 issues on this pull request. View more on Code Climate. |
Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type
Context
Before submitting pull request, please make sure:
Optional
Had issue bounty label?
Community participation
Screenshot 📸