mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
prevent composer from going too low
This commit is contained in:
@@ -22,6 +22,10 @@ define('composer/resize', function() {
|
||||
postContainer.percentage = percentage;
|
||||
|
||||
if (percentage) {
|
||||
if (percentage < 0.25) {
|
||||
percentage = 0.25;
|
||||
}
|
||||
|
||||
if (env === 'md' || env === 'lg') {
|
||||
postContainer.css('transform', 'translate(0, ' + (Math.abs(1-percentage) * 100) + '%)');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user