mirror of
https://github.com/wekan/wekan.git
synced 2026-02-07 17:04:22 +01:00
Fix #6118: Raise minimum list width from 100 to 270 in existing configurable system
This commit is contained in:
parent
345f9ec223
commit
93ebae78b8
4 changed files with 7 additions and 7 deletions
|
|
@ -290,7 +290,7 @@ BlazeComponent.extendComponent({
|
|||
let isResizing = false;
|
||||
let startX = 0;
|
||||
let startWidth = 0;
|
||||
let minWidth = 100; // Minimum width as defined in the existing code
|
||||
let minWidth = 270; // Minimum width matching system default
|
||||
let listConstraint = this.listConstraint(); // Store constraint value for use in event handlers
|
||||
const component = this; // Store reference to component for use in event handlers
|
||||
|
||||
|
|
|
|||
|
|
@ -221,8 +221,8 @@ template(name="setListWidthPopup")
|
|||
#js-list-width-edit
|
||||
label {{_ 'set-list-width-value'}}
|
||||
p
|
||||
input.list-width-value(type="number" value="{{ listWidthValue }}" min="100")
|
||||
input.list-constraint-value(type="number" value="{{ listConstraintValue }}" min="100")
|
||||
input.list-width-value(type="number" value="{{ listWidthValue }}" min="270")
|
||||
input.list-constraint-value(type="number" value="{{ listConstraintValue }}" min="270")
|
||||
input.list-width-apply(type="submit" value="{{_ 'apply'}}")
|
||||
input.list-width-error
|
||||
br
|
||||
|
|
@ -233,7 +233,7 @@ template(name="setListWidthPopup")
|
|||
|
||||
template(name="listWidthErrorPopup")
|
||||
.list-width-invalid
|
||||
p {{_ 'list-width-error-message'}} '>=100'
|
||||
p {{_ 'list-width-error-message'}} '>=270'
|
||||
button.full.js-back-view(type="submit") {{_ 'cancel'}}
|
||||
|
||||
template(name="setListColorPopup")
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ BlazeComponent.extendComponent({
|
|||
);
|
||||
|
||||
// FIXME(mark-i-m): where do we put constants?
|
||||
if (width < 100 || !width || constraint < 100 || !constraint) {
|
||||
if (width < 270 || !width || constraint < 270 || !constraint) {
|
||||
Template.instance()
|
||||
.$('.list-width-error')
|
||||
.click();
|
||||
|
|
|
|||
|
|
@ -1330,7 +1330,7 @@ Users.helpers({
|
|||
if (widths[boardId] && widths[boardId][listId]) {
|
||||
const width = widths[boardId][listId];
|
||||
// Validate it's a valid number
|
||||
if (validators.isValidNumber(width, 100, 1000)) {
|
||||
if (validators.isValidNumber(width, 270, 1000)) {
|
||||
return width;
|
||||
}
|
||||
}
|
||||
|
|
@ -1349,7 +1349,7 @@ Users.helpers({
|
|||
}
|
||||
|
||||
// Validate width before storing
|
||||
if (!validators.isValidNumber(width, 100, 1000)) {
|
||||
if (!validators.isValidNumber(width, 270, 1000)) {
|
||||
console.warn('Invalid list width:', width);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue