Skip to content

Commit 100b46f

Browse files
committed
updated
1 parent 7c65719 commit 100b46f

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

src/components/right-sidebar/ComponentDetails.vue

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ Description:
1212
<q-card id="code-window" class="no-shadow" v-if="this.activeComponentObj">
1313
<q-tabs
1414
v-model="tab"
15-
dense
15+
dense=""
1616
class="bg-subaccent text-white"
1717
active-color="secondary"
1818
indicator-color="secondary"
1919
align="left"
2020
>
2121
<q-tab name="code" label="Code Snippet" class="label-text" />
2222
<q-tab name="html" label="HTML Elements" class="label-text" />
23-
<q-tab name="state" label="Component State" class="label-text" />
24-
<q-tab name="actions" label="Component Actions" class="label-text" />
25-
<q-tab name="props" label="Component Props" class="label-text" />
23+
<q-tab name="state" label="Component Properties" class="label-text" />
24+
<!-- <q-tab name="actions" label="Component Actions" class="label-text" />
25+
<q-tab name="props" label="Component Props" class="label-text" /> -->
2626
</q-tabs>
2727
<q-tab-panels v-model="tab" animated class="html-bg text-white">
2828
<q-tab-panel name="code">
@@ -32,6 +32,8 @@ Description:
3232
<HTMLQueue />
3333
</q-tab-panel>
3434
<q-tab-panel name="state">
35+
<div class ="componentProperties">
36+
<q-expansion-item default-closed label="Component State">
3537
<p v-if="!this?.activeComponentObj?.state?.length">
3638
{{this.activeComponent ? `No state in ${this.activeComponent}` : 'Select a component.' }}
3739
</p>
@@ -43,9 +45,11 @@ Description:
4345
{{ comp }}
4446
</li>
4547
</ul>
46-
</q-tab-panel>
47-
<q-tab-panel name="actions">
48-
<p v-if="!this?.activeComponentObj?.actions?.length">
48+
</q-expansion-item>
49+
</div>
50+
<div class ="componentProperties">
51+
<q-expansion-item default-closed label="Component Actions">
52+
<p v-if="!this?.activeComponentObj?.actions?.length">
4953
{{this.activeComponent ? `No actions in ${this.activeComponent}` : 'Select a component.' }}
5054
</p>
5155
<p v-else>
@@ -56,9 +60,11 @@ Description:
5660
{{ comp }}
5761
</li>
5862
</ul>
59-
</q-tab-panel>
60-
<q-tab-panel name="props">
61-
<p v-if="!this?.activeComponentObj?.props?.length">
63+
</q-expansion-item>
64+
</div>
65+
<div class ="componentProperties">
66+
<q-expansion-item default-closed label="Component Props">
67+
<p v-if="!this?.activeComponentObj?.props?.length">
6268
{{this.activeComponent ? `No props in ${this.activeComponent}` : 'Select a component.' }}
6369
</p>
6470
<p v-else>
@@ -69,6 +75,8 @@ Description:
6975
{{ comp }}
7076
</li>
7177
</ul>
78+
</q-expansion-item>
79+
</div>
7280
</q-tab-panel>
7381
</q-tab-panels>
7482
</q-card>
@@ -195,4 +203,8 @@ i {
195203
align-content: stretch;
196204
max-height: 95%;
197205
}
206+
207+
.componentProperties {
208+
margin-bottom:2em;
209+
}
198210
</style>

src/css/quasar.variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// **************** Taken from OverVue *******************
2828
$primary : #737578;
29-
$secondary : #42B883;
29+
$secondary : #9c49a3;
3030
$accent : #a1ddc2;
3131
$subaccent : #0d0d0d;
3232
$subaccentbtn : #2c384d;

0 commit comments

Comments
 (0)