1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 00:37:42 +02:00

Merge pull request #2037 from prototech/ticket/12080

[ticket/12080] Fix color palettes when responsive.
This commit is contained in:
Nathan Guse
2014-02-20 20:59:14 -06:00
4 changed files with 23 additions and 6 deletions

View File

@@ -994,7 +994,8 @@ phpbb.colorPalette = function(dir, width, height) {
numberList[3] = 'BF';
numberList[4] = 'FF';
html += '<table style="width: auto;">';
var table_class = (dir == 'h') ? 'horizontal-palette' : 'vertical-palette';
html += '<table class="not-responsive colour-palette ' + table_class + '" style="width: auto;">';
for (r = 0; r < 5; r++) {
if (dir == 'h') {