Skip to content

Commit

Permalink
fix: colorWeak overflow #694
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Mar 25, 2020
1 parent 685977e commit 000f8e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,3 @@ export default {
}
}
</script>
<style>
#app {
height: 100%;
}
</style>
4 changes: 3 additions & 1 deletion src/components/SettingDrawer/SettingDrawer.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<template>
<div class="setting-drawer" ref="settingDrawer">
<div class="setting-drawer">
<a-drawer
width="300"
placement="right"
@close="onClose"
:closable="false"
:visible="visible"
:drawer-style="{ position: 'absolute' }"
style="position: absolute"
>
<div class="setting-drawer-index-content">

Expand Down
3 changes: 2 additions & 1 deletion src/components/SettingDrawer/settingConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ const updateTheme = primaryColor => {

const updateColorWeak = colorWeak => {
// document.body.className = colorWeak ? 'colorWeak' : '';
colorWeak ? document.body.classList.add('colorWeak') : document.body.classList.remove('colorWeak')
const app = document.body.querySelector('#app')
colorWeak ? app.classList.add('colorWeak') : app.classList.remove('colorWeak')
}

export { updateTheme, colorList, updateColorWeak }
6 changes: 6 additions & 0 deletions src/components/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

body {


}

#app {
height: 100%;

&.colorWeak {
filter: invert(80%);
}
Expand Down

0 comments on commit 000f8e9

Please sign in to comment.