Skip to content

Commit

Permalink
Fix misalignment issue with New Child links. Bump to 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed May 31, 2024
1 parent afb543a commit 901c9e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
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/).

## 2.2.1 - 2024-05-31
### Fixed
- Fixed a misalignment issue with "New child" buttons in element index columns

## 2.2.0 - 2024-05-18
### Changed
- Setting the `EVENT_DEFINE_ENTRY_TYPES::$entryTypes` attribute to an empty array now results in the "New child" button not being rendered, instead of defaulting to the current entry's entry type.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mmikkel/child-me",
"description": "Easily create child elements",
"type": "craft-plugin",
"version": "2.2.0",
"version": "2.2.1",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/templates/childme-button.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if links and element %}
{% if links|length == 1 %}
<a href="{{ links[0].url }}"
class="childme-button{{ hidden ? ' hidden' }}"
class="childme-button btn{{ hidden ? ' hidden' }}"
data-icon="plus"
aria-label="{{ 'New child'|t('app') }}"
title="{{ 'New child'|t('app') }}"
Expand Down

0 comments on commit 901c9e7

Please sign in to comment.