max/min width of column

This commit is contained in:
cutls
2020-09-03 23:17:01 +09:00
parent 4d1053ce99
commit 2d249f6f19
6 changed files with 38 additions and 16 deletions

View File

@@ -76,8 +76,12 @@ function parseColumn(target, dontclose) {
var obj = [
{
domain: 0,
type: 'local',
type: 'home',
},
{
domain: 0,
type: 'local',
}
]
var json = JSON.stringify(obj)
localStorage.setItem('column', json)
@@ -162,6 +166,10 @@ function parseColumn(target, dontclose) {
if (width) {
var css = ' min-width:' + width + 'px;'
}
var maxWidth = localStorage.getItem('max-width')
if (maxWidth) {
css = css +'max-width:' + maxWidth + 'px;'
}
if (acct.width) {
var css = ' min-width:' + acct.width + 'px;max-width:' + acct.width + 'px;'
}