- Add objectTypeClass property to allow new CSS selector to target Plan object types in Timestrip views.;

Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
Charles Hacskaylo 2022-02-07 13:57:46 -08:00 committed by GitHub
parent 7209104d05
commit 839e210ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@
</div> </div>
<div ref="objectViewWrapper" <div ref="objectViewWrapper"
class="c-object-view" class="c-object-view"
:class="objectTypeClass"
></div> ></div>
</div> </div>
</template> </template>
@ -75,6 +76,9 @@ export default {
const viewKey = this.getViewKey(); const viewKey = this.getViewKey();
return this.domainObject && SupportedViewTypes.includes(viewKey); return this.domainObject && SupportedViewTypes.includes(viewKey);
},
objectTypeClass() {
return this.domainObject && ('is-object-type-' + this.domainObject.type);
} }
}, },
destroyed() { destroyed() {

View File

@ -29,4 +29,7 @@
@include smallerControlButtons; @include smallerControlButtons;
} }
// Yet more brittle special case selecting...
.is-object-type-plan { display: contents; }
} }