NetTalk Central

Author Topic: The Cards Example  (Read 3763 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
The Cards Example
« on: August 01, 2018, 09:01:04 PM »
Hi Bruce,
I'm trying out the cards example that you demonstrated in webinar #196 but I'm getting some weird results.

In your demo each field displays on a separate line inside the cell whereas I get what appears to be random line breaks.

I'm also having some problems with the number of cards being displayed on each 'row'. Even though I've set the cell width like you demo'ed I sometimes get 8 cards per 'row' and sometimes only two thus making the cards width different.

Could this be because I'm using the 'ShoeStrap2' theme rather than 'base'?


On a side note the same class name is generated twice into the browse row:
Quote
<div class="nt-browse-grid-row nt-browse-grid-row nt-browse-row-data browsecatalog-row-data" data-elem="browse-row" data-do="dc">

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11176
    • View Profile
Re: The Cards Example
« Reply #1 on: August 01, 2018, 10:27:26 PM »
Hi Peter,

So to be clear, you're doing it exactly like me, but with different results.
I guess that would suggest you are not doing it exactly like me?
However without a small example app of what you _are_ doing I lack the psychic powers to determine what the difference might be. :)

>> Could this be because I'm using the 'ShoeStrap2' theme rather than 'base'?

Sure. It _could_ be literally anything....

cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11176
    • View Profile
Re: The Cards Example
« Reply #2 on: August 02, 2018, 10:46:18 PM »
.nt-browse-grid-cell {
    flex-direction: column;
}

Seems to help.

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: The Cards Example
« Reply #3 on: August 03, 2018, 04:12:59 AM »
Hi Bruce,

It sure helps! At least it takes care of the line breaks within the cells.
But there are other things like width and wrapping that are not behaving like in your demo. It's almost as if you've got a different set of css-files in play.

Anyway, I'm going to play some more with the css and see what I can get out of it.

Peter

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: The Cards Example
« Reply #4 on: August 07, 2018, 10:28:01 PM »
Out of curiousity: has anyone else tried this - with the expected (demonstrated) behaviour? And if so, what did you do to make it work?

Peter