FoxInCloud
small button
Gravatar is a globally recognized avatar based on your email address. small button
  Vincent H.
  All
  Oct 19, 2023 @ 08:05pm

Hi Thierry,

Small suggestion:

When a button is small, with wBSwidth = "sm", it would be logical for the associated image to be in the same format: class = "...fa-sm" (instead of fa-lg)

Gravatar is a globally recognized avatar based on your email address. re: small button
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 21, 2023 @ 06:09am

Hi Vincent,

I don't think fa-sm exists in font-awesome V 4 that FoxinCloud uses.

We could remove fa-lg instead

Can you share a test case?

Gravatar is a globally recognized avatar based on your email address. re: small button
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 22, 2023 @ 11:44pm

"lg" is in the Size field of my awBSicon table

In wcHTMLgen() of the button, I added:

IF VARTYPE (m.toHTMLgen) = COBJECT
    toHTMLgen.cScriptJSadd(TEXTMERGE ([jQuery("#<<THIS.wcID>> > span").removeClass("fa-lg").addClass("fa-sm");]))
ENDIF

Gravatar is a globally recognized avatar based on your email address. re: small button
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 24, 2023 @ 12:16am

Hi Vincent,

Icon size being defined once for all in awBSicon.Size your solution is, IMHO, optimal.

Gravatar is a globally recognized avatar based on your email address. re: small button
  Vincent H.
  FoxInCloud Support - Thierry N.
  Oct 24, 2023 @ 12:22am

IMHO

😉

OK, so I leave it as is

Gravatar is a globally recognized avatar based on your email address. re: small button
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 4, 2023 @ 12:36am

Hi Vincent,

After further thinking, if the element's wBSsize is sm or xs, FoxInCloud no longer adds the size attribute defined in awBsicon.Size.

I'll soon send you the modified awHTML.prg for your tests.

If OK, you can remove the JavaScript snippet that you shared earlier in the thread.

Gravatar is a globally recognized avatar based on your email address. re: small button
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 4, 2023 @ 12:37am

Great, thanks Thierry !

Gravatar is a globally recognized avatar based on your email address. re: small button
  Vincent H.
  Vincent H.
  Nov 4, 2023 @ 02:18am

Your modification works perfectly, I was able to remove my code.

THANKS !

© 1996-2023