Skip to content

Commit 424e5a9

Browse files
authored
Fix log record hover and active highlighting (#214)
* Fix log record hover and active highlighting * Auto build assets [skip ci] --------- Co-authored-by: frankdekker <2179983+frankdekker@users.noreply.github.com>
1 parent 7c399ae commit 424e5a9

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

frontend/src/components/LogRecord.vue

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ function click(value: string) {
1515
</script>
1616

1717
<template>
18-
<div class="slv-list-group-item list-group-item list-group-item-action"
19-
:class="{'opacity-50': logRecord.context_line && !expanded}"
20-
:aria-expanded="expanded">
21-
<div class="slv-list-link" :class="{ 'text-nowrap': !expanded, 'overflow-hidden': !expanded }" @click="expanded = !expanded">
18+
<div class="slv-log-record" :class="{'opacity-50': logRecord.context_line && !expanded}" :aria-expanded="expanded">
19+
<div class="slv-list-link list-group-item list-group-item-action border-0 p-0"
20+
:class="{ 'text-nowrap': !expanded, 'overflow-hidden': !expanded }"
21+
@click="expanded = !expanded">
2222
<i class="slv-indicator bi bi-chevron-right me-1"></i>
2323
<span class="pe-2 text-secondary">{{ logRecord.datetime }}</span>
2424
<span class="text-primary pe-2" v-if="logRecord.channel.length > 0">{{ logRecord.channel }}</span>
@@ -46,9 +46,13 @@ function click(value: string) {
4646
</template>
4747

4848
<style scoped>
49-
.slv-list-group-item {
50-
--bs-list-group-item-padding-x: 0px;
51-
--bs-list-group-item-padding-y: 0px;
49+
.slv-log-record {
50+
border: 1px solid var(--bs-border-color);
51+
border-bottom-width: 0;
52+
}
53+
54+
.slv-log-record:last-child {
55+
border-bottom-width: 1px;
5256
}
5357
5458
.slv-list-link {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"src/main.ts": {
3-
"file": "assets/main-BJo1MZqw.js",
3+
"file": "assets/main-ZEUMoZIZ.js",
44
"name": "main",
55
"src": "src/main.ts",
66
"isEntry": true
77
},
88
"style.css": {
9-
"file": "assets/style-Coso1hMk.css",
9+
"file": "assets/style-BHUqSd06.css",
1010
"src": "style.css"
1111
}
1212
}

src/Resources/public/assets/main-BJo1MZqw.js renamed to src/Resources/public/assets/main-ZEUMoZIZ.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Resources/public/assets/style-Coso1hMk.css renamed to src/Resources/public/assets/style-BHUqSd06.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)