Skip to content

Commit

Permalink
fix: UI improvements to colors
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Sep 25, 2023
1 parent 6673831 commit a051245
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/components/LogViewer/FieldList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@
></field-list>
</template>
<template v-else-if="Array.isArray(value)">
<a @click="toggleField(name)"> {{ hasField(name) ? "remove" : "add" }}&nbsp;</a>
<a @click="toggleField(name)" class="link-primary cursor-pointer">
{{ hasField(name) ? "remove" : "add" }}&nbsp;</a
>
<span class="text-light">{{ name }}=</span>[
<span class="font-bold" v-for="(item, index) in value">
<span v-html="JSON.stringify(item)"></span><span v-if="index !== value.length - 1">,</span>
</span>
]
</template>
<template v-else>
<a @click="toggleField(name)"> {{ hasField(name) ? "remove" : "add" }}&nbsp;</a>
<a @click="toggleField(name)" class="link-primary cursor-pointer">
{{ hasField(name) ? "remove" : "add" }}&nbsp;</a
>
<span class="text-light">{{ name }}=</span><span class="font-bold" v-html="value"></span>
</template>
</li>
Expand Down
4 changes: 4 additions & 0 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
.btn {
@apply font-normal normal-case;
}

.btn:not(.btn-primary):not(.btn-secondary) {
@apply hover:bg-base-lighter;
}
}

@layer utilities {
Expand Down

0 comments on commit a051245

Please sign in to comment.