Skip to content

Commit

Permalink
Fix #14
Browse files Browse the repository at this point in the history
  • Loading branch information
internetztube committed Sep 6, 2021
1 parent 5aa55e9 commit ac31b44
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 1,009 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Slug Equals Title Changelog
All notable changes to this project will be documented in this file.

## 1.3.2 - 2021-09-06
### Fixed
- Fix categories. #14

## 1.3.1 - 2021-02-02
### Fixed
- Only register Asset Bundle when necessary. #12
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": "internetztube/craft-slug-equals-title",
"description": "This plugin makes sure that the slug is always the same as the title.",
"type": "craft-plugin",
"version": "1.3.1",
"version": "1.3.2",
"keywords": [
"craft",
"cms",
Expand Down
63 changes: 59 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
"sass": "^1.26.10",
"sass-loader": "^7.3.1",
"vue-template-compiler": "^2.6.11"
},
"dependencies": {
"cross-env": "^7.0.3"
}
}
4 changes: 3 additions & 1 deletion src/js/exclude-from-rewrite/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ const buildLightSwitch = () => {

lightSwitch = new Craft.LightSwitch($toggleContainer);
const width = $slugFieldInputContainer.getBoundingClientRect().width - $toggleContainer.getBoundingClientRect().width;
$slugFieldInputContainer.style.width = `${width}px`;
const spaceRight = 10;
$slugFieldInputContainer.style.width = `${width - spaceRight}px`;
$slugFieldInputContainer.style.marginRight = `${spaceRight}px`;
$toggleInput = document.querySelector(`[name=${hiddenFieldName}]`);
};

Expand Down
13 changes: 1 addition & 12 deletions src/resources/exclude-from-rewrite/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ac31b44

Please sign in to comment.