Skip to content
Snippets Groups Projects
Commit 8cf57b48 authored by Ron Lucke's avatar Ron Lucke
Browse files

Sprachicons mit Text statt Flaggen sind zu groß

Closes #4955

Merge request studip/studip!3717
parent e7f6d667
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
return state.text;
}
let flagUrl = $(state.element).data('flag');
let flag = $(`<img src="${flagUrl}" style="vertical-align: text-top;">`);
let flag = $(`<img src="${flagUrl}" style="vertical-align: middle; max-height: 20px; max-width: 20px;">`);
let span = $('<span>');
span.text(state.text);
$(flag).prependTo(span);
......@@ -27,7 +27,7 @@
};
$('#languages').select2({
minimumResultsForSearch: -1,
width: '100%',
width: '120px',
templateResult: format,
templateSelection: format
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment