Skip to content

Commit

Permalink
fix: audit log long property name wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Dec 14, 2023
1 parent 3721bfd commit 56776e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
<tbody>
<tr v-for="prop in auditLog.properties" :key="prop.id">
<td class="c-audit-logs--property-name">
<c-display :model="prop" for="propertyName" />
{{ prop.propertyName }}
</td>
<td
class="c-audit-logs--property-value c-audit-logs--property-old"
Expand Down Expand Up @@ -290,6 +290,7 @@ interface AuditLogBase {
$metadata: ModelType;
id: number | null;
parentId: number | null;
propertyName: string | null;
oldValue: string | null;
oldValueDescription: string | null;
newValue: string | null;
Expand Down Expand Up @@ -525,5 +526,8 @@ export default defineComponent({
tr:not(:last-child) td {
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
tr:hover td {
background: rgba(0, 0, 0, 0.1);
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
<tbody>
<tr v-for="prop in auditLog.properties" :key="prop.id!">
<td class="c-audit-logs--property-name">
<c-display :model="prop" for="propertyName" />
{{ prop.propertyName }}
</td>
<td
class="c-audit-logs--property-value c-audit-logs--property-old"
Expand Down Expand Up @@ -278,6 +278,7 @@ interface AuditLogBase {
$metadata: ModelType;
id: number | null;
parentId: number | null;
propertyName: string | null;
oldValue: string | null;
oldValueDescription: string | null;
newValue: string | null;
Expand Down Expand Up @@ -474,7 +475,6 @@ defineExpose({
.c-audit-logs--property-name {
width: 170px;
white-space: nowrap;
}
.c-audit-logs--property-value {
white-space: pre-wrap;
Expand All @@ -493,5 +493,8 @@ defineExpose({
tr:not(:last-child) td {
border-bottom: 1px solid rgba(var(--v-theme-on-surface), 0.05);
}
tr:hover td {
background: rgba(0, 0, 0, 0.1);
}
}
</style>

0 comments on commit 56776e0

Please sign in to comment.