diff options
| author | bobzel <zzzman@gmail.com> | 2025-04-08 14:26:56 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-04-08 14:26:56 -0400 |
| commit | d60734c4cdd8fe64d50e3de32182cc6b04afc747 (patch) | |
| tree | f40568f613580ebf8a712d4a4ef1674d7edd1b36 /src/client/views/nodes/FontIconBox/FontIconBox.tsx | |
| parent | 840d5b3b3a0e907b0ca74abb9ad57e09bfbc0b76 (diff) | |
fixed gptImageLabel calls and added ImageCastToNameType to deal with filenames with '.'s in them. fixed vertical centered text.
Diffstat (limited to 'src/client/views/nodes/FontIconBox/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FontIconBox/FontIconBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FontIconBox/FontIconBox.tsx b/src/client/views/nodes/FontIconBox/FontIconBox.tsx index d14def9aa..3190757e2 100644 --- a/src/client/views/nodes/FontIconBox/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox/FontIconBox.tsx @@ -302,7 +302,7 @@ export class FontIconBox extends ViewBoxBaseComponent<ButtonProps>() { multiSelect={true} onPointerDown={e => script && !toggleStatus && setupMoveUpEvents(this, e, returnFalse, emptyFunction, () => script.run({ this: this.Document, value: undefined, _readOnly_: false }))} toggleStatus={toggleStatus} - showUntilToggle={BoolCast(this.Document.showUntilToggle)} // allow the toggle to be clickable unless ignoreClick is set on the Document + showUntilToggle={BoolCast(this.Document.showUntilToggle)} label={selectedItems.length === 1 ? selectedItems[0] : this.label} items={items.map(item => ({ icon: <FontAwesomeIcon className={`fontIconBox-icon-${this.type}`} icon={StrCast(item.icon) as IconProp} color={color} />, @@ -413,7 +413,7 @@ export class FontIconBox extends ViewBoxBaseComponent<ButtonProps>() { case ButtonType.TextButton: return <Button {...btnProps} color={color} background={color} text={StrCast(this.dataDoc.buttonText)}/>; case ButtonType.MenuButton: return <IconButton size={Size.LARGE} {...btnProps} color={color} background={color} - tooltipPlacement='right' onPointerDown={scriptFunc} />; + tooltipPlacement='right' onClick={scriptFunc} />; default: } return this.defaultButton; |
