Skip to content

Commit ee9986e

Browse files
committed
impl. wrapping hack for menu using CSS
1 parent 3105ba5 commit ee9986e

File tree

6 files changed

+11
-5
lines changed

6 files changed

+11
-5
lines changed

public/css/agileui.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ i.atk-panel-warning {
395395
}
396396
}
397397

398+
// add unofficial support for "wrapping" for Fomantic-UI Menu
399+
// https://github.com/fomantic/Fomantic-UI/issues/2345
400+
.ui.menu.wrapping {
401+
flex-wrap: wrap;
402+
}
403+
398404
// Print
399405

400406
@media print {

public/css/agileui.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/agileui.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Menu extends View
1313
{
14-
public $ui = 'menu wrapping buttons'; // "buttons" class is workaround to support "wrapping" until https://github.com/fomantic/Fomantic-UI/issues/2345 is officially supported
14+
public $ui = 'menu wrapping';
1515

1616
/**
1717
* If you set this to false, then upon clicking on the item, it won't

src/Paginator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
class Paginator extends View
1111
{
12-
public $ui = 'pagination menu wrapping buttons'; // "buttons" class is workaround to support "wrapping" until https://github.com/fomantic/Fomantic-UI/issues/2345 is officially supported
1312
public $defaultTemplate = 'paginator.html';
13+
public $ui = 'pagination menu wrapping';
1414

1515
/** Specify how many pages this paginator has in total. */
1616
public int $total;

src/Tabs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class Tabs extends View
1010
{
1111
public $defaultTemplate = 'tabs.html';
12-
public $ui = 'tabular menu wrapping buttons'; // "buttons" class is workaround to support "wrapping" until https://github.com/fomantic/Fomantic-UI/issues/2345 is officially supported
12+
public $ui = 'tabular menu wrapping';
1313

1414
/** @var string name of active tab */
1515
public $activeTabName;

0 commit comments

Comments
 (0)