Skip to content

Commit

Permalink
Jamie simulate page design polish (#4682)
Browse files Browse the repository at this point in the history
Co-authored-by: Yohann Paris <[email protected]>
Co-authored-by: Daniel Chang <[email protected]>
  • Loading branch information
3 people authored Sep 6, 2024
1 parent ea08561 commit ac26711
Show file tree
Hide file tree
Showing 5 changed files with 237 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ header .title {
header .tabs-row {
justify-content: space-between;
align-items: end;
gap: var(--gap-1);
gap: var(--gap-4);
}
header .tabs-row:deep(.p-tabview .p-tabview-panels) {
Expand All @@ -98,12 +98,15 @@ a {
:deep(.p-tabview .p-tabview-nav li .p-tabview-nav-link:focus) {
background-color: var(--surface-section);
}
:deep(.p-tabview .p-tabview-nav li .p-tabview-nav-link) {
padding: var(--gap-3) var(--gap-6);
}
.actions {
display: flex;
justify-content: flex-end;
gap: var(--gap-small);
padding-bottom: var(--gap-small);
padding-bottom: var(--gap-1);
flex: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>
</template>
<div v-else-if="!isEmpty(annotation)" class="annotation">
<p @click="isEditing = true">{{ annotation }}<span class="pi pi-pencil ml-2 text-xs" /></p>
<p @click="isEditing = true">{{ annotation }}<span class="pi pi-pencil ml-2 text-xs edit-button" /></p>
</div>
</section>
<Button
Expand Down Expand Up @@ -81,6 +81,7 @@ watch(
section {
display: flex;
flex: 1;
&:empty {
display: none;
}
Expand Down Expand Up @@ -114,6 +115,11 @@ section {
}
}
.edit-button {
color: var(--text-color-secondary);
cursor: pointer;
}
/* In drilldown */
&:not(.in-node) {
padding-bottom: var(--gap-small);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>
</template>
<div v-else-if="isLoading === false" class="summary">
<p else @click="isEditing = true">{{ summaryText }}<span class="pi pi-pencil ml-2 text-xs" /></p>
<p else @click="isEditing = true">{{ summaryText }}<span class="pi pi-pencil ml-2 text-xs edit-button" /></p>
</div>
<div v-else-if="isLoading" class="summary">
<img src="@assets/svg/icons/magic.svg" alt="Magic icon" />
Expand Down Expand Up @@ -171,5 +171,10 @@ section {
&.is-editing {
padding: 0;
}
.edit-button {
color: var(--text-color-secondary);
cursor: pointer;
}
}
</style>
Loading

0 comments on commit ac26711

Please sign in to comment.