Skip to content

Commit

Permalink
chore: update docs layout (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaogengzhu authored Jul 13, 2023
1 parent 4cde26d commit 9139ce0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion site/mobile/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div @touchstart.stop>
<div @touchstart.stop class="tdesign-demo-page">
<tdesign-header />
<div class="tdesign-demo-main">
<router-view />
Expand Down
1 change: 1 addition & 0 deletions site/styles/mobile/demo.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
background-color: #f6f6f6;
font-family: "PingFang SC";
padding-bottom: 28px;
box-sizing: border-box;

.title {
font-size: 24px;
Expand Down
13 changes: 12 additions & 1 deletion site/styles/mobile/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ body {
z-index: 0;
}

.tdesign-demo-page {
display: flex;
flex-direction: column;
height: 100vh;
overflow: hidden;
}

.tdesign-demo-main {
flex: 1;
overflow-y: scroll;
}

.tdesign-mobile-home {
box-sizing: border-box;
width: 100%;
min-height: 100vh;
padding: 24px;
& p{
padding-top:16px;
Expand Down
2 changes: 1 addition & 1 deletion src/fab/demos/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const btnProps = {
<style lang="less" scoped>
.tdesign-mobile-demo {
background-color: #fff;
min-height: 100vh;
min-height: 100%;
box-sizing: border-box;
}
</style>
2 changes: 1 addition & 1 deletion src/image-viewer/demos/mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ import operationDemo from './operation.vue';
<style scoped>
.tdesign-mobile-demo {
background-color: #fff;
min-height: 100vh;
min-height: 100%;
}
</style>

0 comments on commit 9139ce0

Please sign in to comment.