Skip to content

Commit 39cd519

Browse files
authored
refactor: improve hot zone for theme switch
1 parent 29bd6aa commit 39cd519

File tree

1 file changed

+5
-4
lines changed
  • src/client/theme-default/slots/ColorSwitch

1 file changed

+5
-4
lines changed

src/client/theme-default/slots/ColorSwitch/index.less

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@
5050

5151
select {
5252
position: absolute;
53-
top: 0;
54-
left: 0;
53+
inset: 0 15%;
5554
opacity: 0;
56-
max-width: 100%;
57-
max-height: 16px;
55+
width: 100%;
56+
min-width: 16px;
57+
max-width: 70%;
58+
height: 16px;
5859
cursor: pointer;
5960
}
6061
}

0 commit comments

Comments
 (0)