File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ const LayoutBase = props => {
75
75
'relative mx-auto justify-center md:flex items-start py-8 px-2'
76
76
} >
77
77
{ /* 内容 */ }
78
- < div className = { `w-full ${ fullWidth ? '' : '' } xl: px-32 lg:px-4 ` } >
78
+ < div className = { `w-full ${ fullWidth ? '' : '' } px-4 max-w-[90rem] mx-auto ` } >
79
79
< Transition
80
80
show = { ! onLoading }
81
81
appear = { true }
@@ -157,7 +157,7 @@ const LayoutSlug = props => {
157
157
158
158
// 创建一个新的容器元素
159
159
const videoWrapper = document . createElement ( 'div' )
160
- videoWrapper . className = 'video-wrapper p-2 bg-gray-100 dark:bg-hexo-black-gray max-w-4xl mx-auto'
160
+ videoWrapper . className = 'video-wrapper py-1 px-3 bg-gray-100 dark:bg-white dark:text-black mx-auto'
161
161
162
162
// 创建一个新的容器元素
163
163
const carouselWrapper = document . createElement ( 'div' )
@@ -234,7 +234,7 @@ const LayoutSlug = props => {
234
234
235
235
setTimeout ( ( ) => {
236
236
combineVideo ( )
237
- } , 100 )
237
+ } , 2000 )
238
238
239
239
// 404
240
240
if ( ! post ) {
@@ -266,7 +266,7 @@ const LayoutSlug = props => {
266
266
return (
267
267
< >
268
268
{ ! lock ? (
269
- < div id = 'article-wrapper' className = 'px-2 max-w-5xl mx-auto' >
269
+ < div id = 'article-wrapper' className = 'px-2 max-w-6xl mx-auto' >
270
270
{ /* 标题 */ }
271
271
< ArticleInfo post = { post } />
272
272
{ /* 页面元素 */ }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default function NavBar(props) {
25
25
26
26
const onKeyUp = e => {
27
27
if ( e . keyCode === 13 ) {
28
- const search = document . getElementById ( 'theme- simple-search' ) . value
28
+ const search = document . getElementById ( 'simple-search' ) . value
29
29
if ( search ) {
30
30
router . push ( { pathname : '/search/' + search } )
31
31
}
@@ -43,7 +43,7 @@ export default function NavBar(props) {
43
43
{ showSearchInput && (
44
44
< input
45
45
autoFocus
46
- id = "theme- simple-search"
46
+ id = "simple-search"
47
47
onKeyUp = { onKeyUp }
48
48
className = "float-left w-full outline-none h-full px-4"
49
49
aria-label = "Submit search"
You can’t perform that action at this time.
0 commit comments