feat(native): Improved layout in elk-native (#1359)
This commit is contained in:
parent
adbe31d523
commit
1cf123b62b
6 changed files with 60 additions and 34 deletions
|
@ -100,6 +100,24 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
},
|
||||
variants: [
|
||||
(matcher) => {
|
||||
if (!process.env.TAURI_PLATFORM || !matcher.startsWith('native:'))
|
||||
return matcher
|
||||
return {
|
||||
matcher: matcher.slice(7),
|
||||
layer: 'native',
|
||||
}
|
||||
},
|
||||
(matcher) => {
|
||||
if (process.env.TAURI_PLATFORM !== 'macos' || !matcher.startsWith('native-mac:'))
|
||||
return matcher
|
||||
return {
|
||||
matcher: matcher.slice(11),
|
||||
layer: 'native-mac',
|
||||
}
|
||||
},
|
||||
],
|
||||
rules: [
|
||||
// scrollbar-hide
|
||||
[/^scrollbar-hide$/, (_, { constructCSS }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue