Skip to content

Commit

Permalink
chore: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Aug 6, 2024
1 parent da2ef5c commit e44f030
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
},
"menu": {
"icon": true,
"version": "0.1.2",
"version": "0.1.3",
"style": true,
"test": true,
"install": false,
Expand Down
2 changes: 1 addition & 1 deletion src/color-picker/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@include component();
touch-action: none;
width: 225px;
box-shadow: $box-shadow;
border: 1px solid $color-border;
}

.saturation {
Expand Down
10 changes: 2 additions & 8 deletions src/menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import $ from 'licia/$'
import h from 'licia/h'
import defaults from 'licia/defaults'
import each from 'licia/each'
import nextTick from 'licia/nextTick'
import {
measuredScrollbarWidth,
hasVerticalScrollbar,
Expand Down Expand Up @@ -69,17 +68,14 @@ export default class Menu extends Component {
$container.html('')

for (let i = 0, len = menuItems.length; i < len; i++) {
this.$container.append(this.createMenuItem(menuItems[i]))
$container.append(this.createMenuItem(menuItems[i]))
}

const $glassPane = this.createGlassPane()
$glassPane.append(this.container)
$glassPane.show()

// Delay a little to make sure height calculation is correct.
nextTick(() => {
this.positionContent(x, y, parent)
})
this.positionContent(x, y, parent)
}
destroy() {
this.hide()
Expand Down Expand Up @@ -133,8 +129,6 @@ export default class Menu extends Component {
}

$container.css({
width,
height,
left,
top,
})
Expand Down
2 changes: 1 addition & 1 deletion src/menu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "menu",
"version": "0.1.2",
"version": "0.1.3",
"description": "Simple menu",
"luna": {
"icon": true
Expand Down
4 changes: 2 additions & 2 deletions src/music-player/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.luna-music-player {
@include component();
min-width: 375px;
box-shadow: $box-shadow;
border: 1px solid $color-border;
font-size: 14px;
cursor: default;
}
Expand Down Expand Up @@ -213,7 +213,7 @@
}

.theme-dark {
box-shadow: $box-shadow-dark;
border-color: $color-border-dark;
.body-right {
border-bottom-color: $color-border-dark;
}
Expand Down
2 changes: 1 addition & 1 deletion src/music-visualizer/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const def = story(
width: 640,
margin: '0 auto',
maxWidth: '100%',
boxShadow: 'none',
border: 'none',
})
const musicPlayer = new MusicPlayer(musicPlayerContainer, {
audio,
Expand Down
4 changes: 2 additions & 2 deletions src/performance-monitor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.luna-performance-monitor {
@include component();
box-shadow: $box-shadow;
border: 1px solid $color-border;
width: 100%;
padding: 5px;
}
Expand All @@ -25,7 +25,7 @@
}

.theme-dark {
box-shadow: $box-shadow-dark;
border-color: $color-border-dark;
.title {
color: $color-text-dark;
}
Expand Down

0 comments on commit e44f030

Please sign in to comment.