diff options
author | bobzel <zzzman@gmail.com> | 2023-04-19 13:01:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-19 13:01:37 -0400 |
commit | 0a66b0f369a13d5f399bf125727aff73cd6fd1b4 (patch) | |
tree | 1214f42703f07a4cc1b6e88bae02795f65c9b9ff /src/client/views/PropertiesButtons.tsx | |
parent | 615bd643f6afc95f6548bcbec468177582d4ffc3 (diff) |
fixed image importing metadata for gpt. fixed showTitle UI to be able to turn off titles on templates (like icon views). added ui for choosing primary/alternate image and a drop target for setting alternate.
Diffstat (limited to 'src/client/views/PropertiesButtons.tsx')
-rw-r--r-- | src/client/views/PropertiesButtons.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx index 031d501ad..98dcf4f21 100644 --- a/src/client/views/PropertiesButtons.tsx +++ b/src/client/views/PropertiesButtons.tsx @@ -177,7 +177,11 @@ export class PropertiesButtons extends React.Component<{}, {}> { '_showTitle', on => 'Switch between title styles', on => 'text-width', - (dv, doc) => ((dv?.rootDoc || doc)._showTitle = !(dv?.rootDoc || doc)._showTitle ? 'title' : (dv?.rootDoc || doc)._showTitle === 'title' ? 'title:hover' : undefined) + (dv, doc) => { + const tdoc = dv?.rootDoc || doc; + const newtitle = !tdoc._showTitle ? 'title' : tdoc._showTitle === 'title' ? 'title:hover' : ''; + tdoc._showTitle = newtitle; + } ); } @computed get autoHeightButton() { |