ui: Add triple curlies and reformat style attribute (#9210)

This commit is contained in:
John Cowen 2020-11-18 11:11:02 +00:00 committed by GitHub
parent d9af48afce
commit 916d525ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
<nav
style={{if selectedWidth (concat '--selected-width:' selectedWidth ';--selected-left:' selectedLeft ';--selected-height:' selectedHeight ';--selected-top:' selectedTop) undefined}}
style={{{if selectedWidth (concat
'--selected-width:' selectedWidth ';'
'--selected-left:' selectedLeft ';'
'--selected-height:' selectedHeight ';'
'--selected-top:' selectedTop
)
undefined
}}}
role="tablist"
class={{concat 'tab-nav' (if isAnimatable ' animatable' '')}}
id={{guid}}>