File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
components/examples/window/src Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const example3 = () => {
6666 const height = van . state ( 300 )
6767
6868 const crossId = `custom-cross-${ ++ windowId } ` ;
69-
69+
7070 document . head . appendChild (
7171 style ( { type : "text/css" } , `
7272 #${ crossId } :hover {${ toStyleStr ( {
@@ -91,17 +91,18 @@ const example3 = () => {
9191 headerStyleOverrides : {
9292 display : "none" ,
9393 } ,
94-
9594 } ,
9695 div (
9796 span ( {
9897 style : toStyleStr ( {
9998 position : "absolute" ,
10099 top : "0px" ,
101100 right : "0px" ,
102- padding : "0.5rem" ,
101+ padding : "0 0.5rem" ,
102+ height : "2.5rem" ,
103+ display : "inline-flex" ,
104+ "align-items" : "center" ,
103105 cursor : "pointer" ,
104- height : "1.2rem" ,
105106 } ) ,
106107 id : crossId ,
107108 onclick : ( ) => closed . val = true ,
@@ -113,8 +114,12 @@ const example3 = () => {
113114 } ) ,
114115 tabButtonActiveColor : "white" ,
115116 tabButtonBorderStyle : "none" ,
117+ tabButtonRowColor : "lightblue" ,
116118 tabButtonRowStyleOverrides : {
117- "background-color" : "lightblue" ,
119+ height : "2.5rem" ,
120+ } ,
121+ tabButtonStyleOverrides : {
122+ height : "100%" ,
118123 } ,
119124 } ,
120125 {
You can’t perform that action at this time.
0 commit comments