File tree Expand file tree Collapse file tree 4 files changed +40
-2
lines changed Expand file tree Collapse file tree 4 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 22 <div
33 :class =" {
44 'color-editing-panel border p-2': editing,
5- ' border panels-border' : showBorders && !isGrid && !editing
5+ [` border-${bordersSize} panels-border`] : showBorders && !isGrid && !editing
66 }"
77 class =" flex flex-auto flex-col overflow-hidden h-full"
88 >
@@ -87,6 +87,9 @@ export default {
8787 showBorders () {
8888 return this .settings .showBorders
8989 },
90+ bordersSize () {
91+ return this .settings .bordersSize
92+ },
9093 ... mapState ([' editing' ]),
9194 name () {
9295 return this .$parent .panel .name
Original file line number Diff line number Diff line change 4141 </div >
4242 </div >
4343 <div class =" flex -mx-2" >
44- <div class =" w-1/2 px-2" >
44+ <div class =" w-1/3 px-2" >
4545 <div class =" field" >
4646 <div class =" flex" >
4747 <label
5757 </div >
5858 </div >
5959 </div >
60+ <div class =" w-2/3 px-2" >
61+ <div class =" field" >
62+ <label
63+ :for =" `settings-borders-size`"
64+ class =" label"
65+ >Borders size</label >
66+ <div class =" flex" >
67+ <input
68+ :id =" `settings-borders-size`"
69+ v-model.number =" bordersSize"
70+ type =" range"
71+ class =" flex-grow"
72+ min =" 1"
73+ max =" 4"
74+ >
75+ <span
76+ class =" w-10 p-2"
77+ v-text =" bordersSize"
78+ />
79+ </div >
80+ </div >
81+ </div >
6082 </div >
6183 </overlay >
6284</template >
@@ -87,6 +109,14 @@ export default {
87109 set (value ) {
88110 this .setSetting ({key: ' showBorders' , value})
89111 }
112+ },
113+ bordersSize: {
114+ get ({settings}) {
115+ return settings .bordersSize
116+ },
117+ set (value ) {
118+ this .setSetting ({key: ' bordersSize' , value})
119+ }
90120 }
91121 },
92122 methods: {
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export default {
55 hasEdited : false ,
66 theme : 'default' ,
77 showBorders : true ,
8+ bordersSize : 1 ,
89 version : 1
910 } ,
1011 mutations : {
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ module.exports = {
1616 'xl-light' : lightVariant ( defaultTheme . boxShadow . xl ) ,
1717 '2xl-light' : lightVariant ( defaultTheme . boxShadow [ '2xl' ] )
1818 } ,
19+ borderWidth : {
20+ 1 : '1px' ,
21+ 3 : '3px'
22+ } ,
1923 width : {
2024 '1/2' : 'calc(100%/2)' ,
2125 '1/3' : 'calc(100%/3)' ,
You can’t perform that action at this time.
0 commit comments