Skip to content

Commit

Permalink
[!!!][TASK] Do not scale tags size by default
Browse files Browse the repository at this point in the history
The default size for `widgets.tags.maxSize` has
been reduced from 200 to 100 to unset the
default scaling. To reenable the tag scaling in
the widget please adjust the min-/maxSize to
your preferred settings.

In addition the fallback sizes have been also
adjusted to reflect these default typoscript
settings.

Releases: master
  • Loading branch information
benjaminkott committed May 8, 2019
1 parent c8bda4e commit f0507bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/Controller/WidgetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public function categoriesAction(): void
public function tagsAction(): void
{
$limit = (int)$this->settings['widgets']['tags']['limit'] ?: 20;
$minSize = (int)$this->settings['widgets']['tags']['minSize'] ?: 10;
$maxSize = (int)$this->settings['widgets']['tags']['maxSize'] ?: 10;
$minSize = (int)$this->settings['widgets']['tags']['minSize'] ?: 100;
$maxSize = (int)$this->settings['widgets']['tags']['maxSize'] ?: 100;
$tags = $this->tagRepository->findTopByUsage($limit);
$minimumCount = null;
$maximumCount = 0;
Expand Down
2 changes: 1 addition & 1 deletion Configuration/TypoScript/Static/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ plugin {
# cat=blog/blog_133_widgets_tags; type=int+; label= LLL:EXT:blog/Resources/Private/Language/locallang.xlf:constantEditor.widgets.tags.minSize
minSize = 100
# cat=blog/blog_133_widgets_tags; type=int+; label= LLL:EXT:blog/Resources/Private/Language/locallang.xlf:constantEditor.widgets.tags.maxSize
maxSize = 200
maxSize = 100
}
archive {
# cat=blog/blog_134_widgets_archive; type=boolean; label= LLL:EXT:blog/Resources/Private/Language/locallang.xlf:constantEditor.widgets.archive.showCounter
Expand Down

0 comments on commit f0507bd

Please sign in to comment.