fix:调整页面边距
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
.explores {
|
||||
display: flex;
|
||||
padding: 0px 0 10px 0px;
|
||||
background-color: $--background-color-base;
|
||||
box-sizing: border-box;
|
||||
.main-list::after{
|
||||
content: '';
|
||||
display: block;
|
||||
position: absolute;
|
||||
bottom: -10px;
|
||||
left: 0;
|
||||
right: 14px;
|
||||
height: 10px;
|
||||
background-color: $--background-color-empty;
|
||||
}
|
||||
// .main-list::after{
|
||||
// content: '';
|
||||
// display: block;
|
||||
// position: absolute;
|
||||
// bottom: -10px;
|
||||
// left: 0;
|
||||
// right: 14px;
|
||||
// height: 10px;
|
||||
// background-color: $--background-color-empty;
|
||||
// }
|
||||
pre {
|
||||
border: 1px solid $--border-color-base;
|
||||
border-left: 4px solid #e6522c;
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
></promql-input>
|
||||
</template>
|
||||
</div>
|
||||
<div ref="scrollWrap" style="position: relative;z-index: 1;height: auto; padding: 0 20px 4px;">
|
||||
<div style="position: relative;z-index: 1;height: auto;padding: 0px 20px 10px;">
|
||||
<el-collapse v-show="!showIntroduce" v-model="collapseValue" class="explore-collapse" @change="logsCollapseChange">
|
||||
<!--metric-->
|
||||
<template v-if="showMetrics">
|
||||
@@ -3452,7 +3452,7 @@ level=info ts=2020-10-23T20:32:18.068866235Z caller=metrics.go:81 org_id=29 trac
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button :class="{'to-top-is-hover': tableHover}" @click="toTop(scrollbarWrap)" class="to-top" style="position:absolute;bottom: -20px;" v-show="showTopBtn" :title="$t('overall.backToTop')"><i class="nz-icon nz-icon-top"></i></button>
|
||||
<button :class="{'to-top-is-hover': tableHover}" @click="toTop(scrollbarWrap)" class="to-top" style="position:absolute;bottom: -10px;" v-show="showTopBtn" :title="$t('overall.backToTop')"><i class="nz-icon nz-icon-top"></i></button>
|
||||
<transition name="right-box">
|
||||
<chartRightBox v-if="rightBox.show" ref="addChartModal" :chart="chartData" :from="$CONSTANTS.fromRoute.explore" :panel-data="panelData" :show-panel="{id: -1, name: '', type: 'explore'}" @close="handleBox(false)" @on-create-success="createSuccess"></chartRightBox>
|
||||
</transition>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="explore list-page" style="background: #fffffe;padding: 10px 15px;">
|
||||
<div style="height:100%;position:relative;">
|
||||
<div class="explore list-page" style="background: #fffffe;padding: 10px 15px;overflow-x: hidden;overflow-y: auto;">
|
||||
<div style="display: flex;justify-content: space-between;align-items: center;margin-bottom: 10px;">
|
||||
<span>{{dataJson.type == 1 ? 'Metric expression' : 'Log expression'}}</span>
|
||||
<span>
|
||||
@@ -103,6 +104,7 @@
|
||||
</template>
|
||||
</el-collapse>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -119,7 +121,8 @@ export default {
|
||||
triggerButtonClass: { // 触发下拉事件的按钮的class
|
||||
type: String,
|
||||
default: 'top-tool-btn'
|
||||
}
|
||||
},
|
||||
tabIndex: Number
|
||||
},
|
||||
components: {
|
||||
chart,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<span> {{dateFormat(dataJson.start * 1000)}} - {{dateFormat(dataJson.end * 1000)}} ({{dataJson.timezone}})</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="!dataJson.type" id="dashboardScrollbar" class="box-content" ref="dashboardScrollbar" style='overflow:hidden; overflow-y: auto;height: calc(100% - 60px);display: flex;flex-direction: column'>
|
||||
<div v-if="!dataJson.type" id="dashboardScrollbar" class="box-content" ref="dashboardScrollbar" style='overflow:hidden; overflow-y: auto;height: calc(100% - 72px);display: flex;flex-direction: column'>
|
||||
<chartList
|
||||
ref="chartList"
|
||||
name="dashboard"
|
||||
@@ -38,7 +38,7 @@
|
||||
:loading="chartListLoading"
|
||||
/>
|
||||
</div>
|
||||
<div v-if="dataJson.type" id="explore" class="explores" style='overflow:hidden;background: #fffffe; overflow-y: auto;height: calc(100% - 60px);display: flex;flex-direction: column'>
|
||||
<div v-if="dataJson.type" id="explore" class="explores" style='overflow:hidden;background: #fffffe; height: calc(100% - 72px);display: flex;flex-direction: column'>
|
||||
<exploreItem
|
||||
ref="exploreItem"
|
||||
:key="dataJson.type"
|
||||
@@ -137,6 +137,5 @@ export default {
|
||||
text-align: left;
|
||||
color: #2c3e50;
|
||||
margin-top: 10px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user