Skip to content

Commit

Permalink
Merge pull request #236 from nextcloud/feat/body-height-profiler
Browse files Browse the repository at this point in the history
feat: adjust body height for profiler toolbar
  • Loading branch information
icewind1991 authored Jul 24, 2023
2 parents 026457b + f5fd631 commit 3f22cba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/EventsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
startMs: ((event.start - start) * 1000).toFixed(1),
stopMs: ((event.stop - start) * 1000).toFixed(1),
queries: queries.filter(query => (query.start >= event.start && query.start < event.stop)),
...event
...event,
}))
},
queries() {
Expand Down
5 changes: 2 additions & 3 deletions src/views/Profiler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<template #list>
<NcAppNavigationCaption title="Categories" />
<NcAppNavigationItem v-for="cat in categoryInfo"
:to="{ name: cat.id, params: {token: token} }"
:key="cat.id"
:title="cat.name">
</NcAppNavigationItem>
:to="{ name: cat.id, params: {token: token} }"
:title="cat.name" />

<NcAppNavigationCaption title="Requests" />
<div class="select-container">
Expand Down
7 changes: 7 additions & 0 deletions src/views/ProfilerToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,10 @@ export default {
margin-left: auto;
}
</style>

<style lang="scss">
:root {
// overwrite body height for profiler toolbar
--body-height: calc(100% - env(safe-area-inset-bottom) - 50px - var(--body-container-margin) - 36px);
}
</style>

0 comments on commit 3f22cba

Please sign in to comment.