Skip to content

Commit

Permalink
Wrap icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Rias committed May 21, 2018
1 parent 3db145c commit 92d74ab
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.0.13 - 2018-05-21
### Fixed
- Position icons now wrap when constrained.

## 1.0.12 - 2018-05-21
### Fixed
- Fix documentation links
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "rias/craft-position-fieldtype",
"description": "Brings back the Position fieldtype from Craft 2",
"type": "craft-plugin",
"version": "1.0.12",
"version": "1.0.13",
"keywords": [
"craft",
"cms",
Expand Down
Expand Up @@ -42,3 +42,7 @@
.position-icon-right:before {
content: "\e905";
}
.position-fieldtype.btngroup {
flex-wrap: wrap;
height: auto;
}
2 changes: 1 addition & 1 deletion src/templates/_components/fields/Position_input.twig
Expand Up @@ -14,7 +14,7 @@

{% import "_includes/forms" as forms %}

<div id="{{ id }}" class="btngroup big">
<div id="{{ id }}" class="position-fieldtype btngroup big">
{% for option, label in allOptions %}
{% if field.options[option] %}
<div title="{{ label }}" class="btn big {% if value is not null ? option == value : field.default == option %} active{% endif %} position-icon-{{ option }}" data-option="{{ option }}"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_components/fields/Position_settings.twig
Expand Up @@ -50,7 +50,7 @@
</div>
</div>

<div id="{{ id }}" class="btngroup big">
<div id="{{ id }}" class="position-fieldtype btngroup big">
{% for option, label in allOptions %}
<div title="{{ label }}" class="btn big {% if settings.default is not empty and settings.default == label %} active{% endif %} position-icon-{{ label }}" data-option="{{ label }}"></div>
{% endfor %}
Expand Down

0 comments on commit 92d74ab

Please sign in to comment.