Refactor: Make pin preview width a variable

This commit is contained in:
winkidney
2019-12-04 20:18:30 +08:00
committed by Isaac Bythewood
parent 5ba4e9a67b
commit 5282ed5e53
3 changed files with 7 additions and 2 deletions

View File

@@ -171,8 +171,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
/* grid */ /* grid */
@import 'utils/pin';
.grid-sizer, .grid-sizer,
.grid-item { width: 240px; } .grid-item { width: $pin-preview-width; }
.grid-item { .grid-item {
margin-bottom: 15px; margin-bottom: 15px;
} }

View File

@@ -216,8 +216,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
/* grid */ /* grid */
@import 'utils/pin';
.grid-sizer, .grid-sizer,
.grid-item { width: 240px; } .grid-item { width: $pin-preview-width; }
.grid-item { .grid-item {
margin-bottom: 15px; margin-bottom: 15px;
} }

View File

@@ -0,0 +1 @@
$pin-preview-width: 240px;