fix remote background height and adjust other items to fit to screen

This commit is contained in:
sadnub
2021-11-08 21:13:01 -05:00
parent ac9b5e2b5c
commit ea79635d68
4 changed files with 13 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div>
<div class="row">
<div class="row q-pt-sm q-pl-sm">
<div class="col-2">
<q-select dense options-dense outlined v-model="days" :options="lastDaysOptions" :label="showDays" />
</div>
@@ -15,7 +15,7 @@
class="remote-bg-tbl-sticky"
:rows="events"
:columns="columns"
style="max-height: 85vh"
:style="{ 'max-height': `${$q.screen.height - 85}px` }"
:pagination="{ rowsPerPage: 0, sortBy: 'record', descending: true }"
:filter="filter"
row-key="uid"
@@ -37,7 +37,7 @@
<q-radio v-model="logType" color="cyan" val="System" label="System" />
<q-radio v-model="logType" color="cyan" val="Security" label="Security" />
<q-space />
<q-input v-model="filter" outlined label="Search" dense clearable>
<q-input v-model="filter" style="width: 300px" outlined label="Search" dense clearable>
<template v-slot:prepend>
<q-icon name="search" />
</template>

View File

@@ -3,7 +3,7 @@
dense
:table-class="{ 'table-bgcolor': !$q.dark.isActive, 'table-bgcolor-dark': $q.dark.isActive }"
class="remote-bg-tbl-sticky"
style="max-height: 85vh"
:style="{ 'max-height': `${$q.screen.height - 36}px` }"
:rows="processes"
:columns="columns"
:pagination="{ rowsPerPage: 0, sortBy: 'cpu_percent', descending: true }"

View File

@@ -3,7 +3,7 @@
dense
:table-class="{ 'table-bgcolor': !$q.dark.isActive, 'table-bgcolor-dark': $q.dark.isActive }"
class="remote-bg-tbl-sticky"
style="max-height: 85vh"
:style="{ 'max-height': `${$q.screen.height - 36}px` }"
:rows="services"
:columns="columns"
:pagination="{ rowsPerPage: 0, sortBy: 'display_name', descending: false }"

View File

@@ -1,5 +1,5 @@
<template>
<div class="q-pa-md">
<div>
<q-tabs
v-model="tab"
dense
@@ -18,26 +18,23 @@
</q-tabs>
<q-separator />
<q-tab-panels v-model="tab">
<q-tab-panel name="terminal">
<q-tab-panel name="terminal" class="q-pa-none">
<iframe
style="overflow: hidden; height: 715px"
:src="terminal"
width="100%"
height="100%"
scrolling="no"
:style="{ height: `${$q.screen.height - 30}px`, width: `${$q.screen.width}px` }"
></iframe>
</q-tab-panel>
<q-tab-panel name="processes">
<q-tab-panel name="processes" class="q-pa-none">
<ProcessManager :agent_id="agent_id" />
</q-tab-panel>
<q-tab-panel name="services">
<q-tab-panel name="services" class="q-pa-none">
<ServicesManager :agent_id="agent_id" />
</q-tab-panel>
<q-tab-panel name="eventlog">
<q-tab-panel name="eventlog" class="q-pa-none">
<EventLogManager :agent_id="agent_id" />
</q-tab-panel>
<q-tab-panel name="filebrowser">
<iframe style="overflow: hidden; height: 715px" :src="file" width="100%" height="100%" scrolling="no"></iframe>
<q-tab-panel name="filebrowser" class="q-pa-none">
<iframe :src="file" :style="{ height: `${$q.screen.height - 30}px`, width: `${$q.screen.width}px` }"></iframe>
</q-tab-panel>
</q-tab-panels>
</div>