feat: mobile terminal adaptation (#78)

This commit is contained in:
Fine0830
2022-05-09 14:54:08 +08:00
committed by GitHub
parent 2a2500a28d
commit d93a7cead2
15 changed files with 56 additions and 432 deletions

View File

@@ -64,6 +64,7 @@ function removeWidget() {
height: 100%;
font-size: 12px;
position: relative;
overflow: auto;
}
.delete {
@@ -76,6 +77,7 @@ function removeWidget() {
padding: 10px;
font-size: 12px;
border-bottom: 1px solid #dcdfe6;
min-width: 1024px;
}
.tools {
@@ -93,6 +95,5 @@ function removeWidget() {
.log {
width: 100%;
overflow: auto;
}
</style>

View File

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div class="flex-h tab-header">
<div class="tabs">
<div class="tabs scroll_bar_style">
<span
v-for="(child, idx) in data.children || []"
:key="idx"
@@ -259,6 +259,10 @@ export default defineComponent({
.tabs {
height: 40px;
color: #ccc;
width: 100%;
overflow-x: auto;
white-space: nowrap;
overflow-y: hidden;
span {
display: inline-block;
@@ -297,7 +301,10 @@ export default defineComponent({
span.active {
border-bottom: 1px solid #409eff;
color: #409eff;
.tab-name {
color: #409eff;
}
}
}

View File

@@ -66,6 +66,7 @@ function removeWidget() {
height: 100%;
font-size: 12px;
position: relative;
overflow: auto;
}
.delete {
@@ -78,6 +79,7 @@ function removeWidget() {
padding: 10px;
font-size: 12px;
border-bottom: 1px solid #dcdfe6;
min-width: 1200px;
}
.tools {
@@ -96,5 +98,6 @@ function removeWidget() {
.trace {
width: 100%;
overflow: auto;
min-width: 1200px;
}
</style>

View File

@@ -78,7 +78,7 @@ limitations under the License. -->
/>
</div>
</div>
<div class="flex-h tools" v-loading="loading">
<div class="flex-h tools" v-loading="loading" v-if="!appStore.isMobile">
<div class="tool-icons flex-h" v-if="dashboardStore.editMode">
<el-dropdown content="Controls" placement="bottom">
<i>

View File

@@ -93,7 +93,7 @@ function setCurrentLog(log: any) {
.log {
font-size: 12px;
height: 100%;
overflow: auto;
border-bottom: 1px solid #eee;
}
.log-header {

View File

@@ -220,6 +220,8 @@ watch(
<style lang="scss" scoped>
.filters {
margin: 5px 0;
width: 100%;
min-width: 560px;
}
.schedules {

View File

@@ -57,6 +57,7 @@ function loadTrees(l: boolean) {
.item {
height: 100%;
width: calc(100% - 300px);
overflow: auto;
}
.list {

View File

@@ -161,6 +161,7 @@ function updateTimeRange() {
flex-shrink: 0;
height: 50%;
width: 100%;
min-width: 800px;
}
.profile-table {
@@ -171,6 +172,7 @@ function updateTimeRange() {
.profile-trace-detail-wrapper {
padding: 5px 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
width: 100%;
}
.profile-trace-detail-ids {

View File

@@ -62,15 +62,6 @@ limitations under the License. -->
</div>
</div>
<div class="flex-h">
<!-- <div class="mr-5">
<span class="grey mr-5">{{ t("timeRange") }}:</span>
<TimePicker
:value="dateTime"
position="bottom"
format="YYYY-MM-DD HH:mm"
@input="changeTimeRange"
/>
</div> -->
<div class="mr-5">
<span class="sm b grey mr-5">{{ t("duration") }}:</span>
<el-input size="small" class="inputs mr-5" v-model="minTraceDuration" />