mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 17:08:57 +00:00
Fix new ObjectView
- Removed empty <div> in template; - Added display: contents to container div;
This commit is contained in:
@ -151,7 +151,7 @@
|
|||||||
&__main-container {
|
&__main-container {
|
||||||
// Wrapper for main views
|
// Wrapper for main views
|
||||||
flex: 1 1 100%;
|
flex: 1 1 100%;
|
||||||
font-size: 16px; // TEMP FOR LEGACY STYLING - TODO: REMOVE!
|
//font-size: 16px; // TEMP FOR LEGACY STYLING
|
||||||
}
|
}
|
||||||
|
|
||||||
&__tree {
|
&__tree {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.l-object-view {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -49,6 +50,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.viewContainer = document.createElement('div');
|
this.viewContainer = document.createElement('div');
|
||||||
|
this.viewContainer.classList.add('l-object-view');
|
||||||
this.$el.append(this.viewContainer);
|
this.$el.append(this.viewContainer);
|
||||||
let provider = this.openmct.objectViews.getByProviderKey(this.viewKey);
|
let provider = this.openmct.objectViews.getByProviderKey(this.viewKey);
|
||||||
if (!provider) {
|
if (!provider) {
|
||||||
|
Reference in New Issue
Block a user