Skip to content

Commit

Permalink
don't collapse entry when clicking on a stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
arukompas committed Sep 14, 2020
1 parent 6f4328b commit fe190bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.1

(fix) Clicking on the stack trace no longer collapses the entry.

## 0.5.0

(new) Support for Laravel 7.x.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "arukompas/better-log-viewer",
"description": "A speedy and clean Laravel Log viewer with pagination and search",
"type": "library",
"version": "0.5.0",
"version": "0.5.1",
"license": "MIT",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/resources/js/components/LogItem.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="log-item" :class="[log.level_class]" @click="showStack = !showStack">
<div>
<div class="log-item" :class="[log.level_class]">
<div @click="showStack = !showStack">
<span class="log-level" :class="'text-' + log.level_class">{{ log.level }}</span>
<span class="log-context text-muted">@ {{ log.context }}</span>
<i class="log-date float-right">{{ log.date }}</i>
Expand Down Expand Up @@ -72,7 +72,11 @@ export default {
}
.log-item:hover {
@apply .cursor-pointer .border-grey;
@apply .border-grey;
}
.log-item:hover > div {
@apply .cursor-pointer;
}
.log-item.info {
Expand Down

0 comments on commit fe190bd

Please sign in to comment.