Frontend: Make log messages selectable
This commit is contained in:
parent
44415bc78e
commit
872d138439
3 changed files with 7 additions and 2 deletions
|
@ -167,6 +167,11 @@ main {
|
|||
user-select: none !important;
|
||||
}
|
||||
|
||||
#photoprism .text-selectable,
|
||||
#photoprism .p-page .text-selectable {
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
#photoprism .p-page pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<v-icon :color="err.Level">{{ err.Level }}</v-icon>
|
||||
</v-list-tile-avatar>
|
||||
|
||||
<v-list-tile-content>
|
||||
<v-list-tile-content class="text-selectable">
|
||||
<v-list-tile-title>{{ err.Message }}</v-list-tile-title>
|
||||
<v-list-tile-sub-title>{{ formatTime(err.Time) }}</v-list-tile-sub-title>
|
||||
</v-list-tile-content>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<p v-if="logs.length === 0" class="p-log-empty">
|
||||
<translate>Nothing to see here yet. Be patient.</translate>
|
||||
</p>
|
||||
<p v-for="(log, index) in logs" :key="index.id" class="p-log-message" :class="'p-log-' + log.level">
|
||||
<p v-for="(log, index) in logs" :key="index.id" class="p-log-message text-selectable" :class="'p-log-' + log.level">
|
||||
{{ formatTime(log.time) }} {{ level(log) }} <span>{{ log.message }}</span>
|
||||
</p>
|
||||
</v-flex>
|
||||
|
|
Loading…
Reference in a new issue