This commit is contained in:
Daria 2026-09-08 18:03:05 +02:00 committed by GitHub
commit 10fd377708
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 2 deletions

View File

@ -157,6 +157,8 @@ define(req, function(AppConfig, Default, Language) {
}
};
Messages.kanban_quickView = "Minimize card content"; // XXX
Messages.kanban_fullView = "Show card content";
return Messages;
});

View File

@ -4448,6 +4448,7 @@ define([
var $color = $(h('button.cp-palette-color'));
all.push($color);
$color.addClass('cp-palette-'+(color || 'nocolor'));
$color.attr('aria-label', Messages['color' + i]);
const checkIcon = Icons.get('check');
$(checkIcon).addClass('cp-check-icon is-hidden'); // added hidden class to overcome Lucide rendering
$color.append(checkIcon);

View File

@ -1111,16 +1111,28 @@ define([
var $cContainer = $('#cp-app-kanban-container');
var addControls = function () {
// Quick or normal mode
var small = h('button.cp-kanban-view-small', Icons.get('kanban-minimize'));
var big = h('button.cp-kanban-view', Icons.get('kanban-maximize'));
var small = h('button.cp-kanban-view-small', Icons.get('kanban-minimize'), {
'title': Messages.kanban_quickView,
'aria-label': Messages.kanban_quickView,
'aria-pressed': $cContainer.hasClass('cp-kanban-quick') ? 'true' : 'false'
});
var big = h('button.cp-kanban-view', Icons.get('kanban-maximize'), {
'title': Messages.kanban_fullView,
'aria-label': Messages.kanban_fullView,
'aria-pressed': $cContainer.hasClass('cp-kanban-quick') ? 'false' : 'true'
});
$(small).click(function () {
if ($cContainer.hasClass('cp-kanban-quick')) { return; }
$cContainer.addClass('cp-kanban-quick');
small.setAttribute('aria-pressed', 'true');
big.setAttribute('aria-pressed', 'false');
//framework._.sfCommon.setPadAttribute('quickMode', true);
});
$(big).click(function () {
if (!$cContainer.hasClass('cp-kanban-quick')) { return; }
$cContainer.removeClass('cp-kanban-quick');
small.setAttribute('aria-pressed', 'false');
big.setAttribute('aria-pressed', 'true');
//framework._.sfCommon.setPadAttribute('quickMode', false);
});