Skip to content

Commit

Permalink
Adding a columns config field.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokenshift committed Nov 15, 2022
1 parent 6b19d6a commit b1c67cb
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.2.3] - 2022-11-14

### Added

* Added a `columns` config field to set the default (max) column count, as an
alternative to explicitly setting the image width.

## [0.2.2] - 2022-11-14

### Modified
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "page-gallery",
"name": "Page Gallery",
"version": "0.2.2",
"version": "0.2.3",
"minAppVersion": "0.15.0",
"description": "Creates an embeddable gallery based on selected page contents.",
"author": "Nathan Clark",
"authorUrl": "https://github.com/tokenshift/obsidian-page-gallery",
"isDesktopOnly": false
}
}
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-page-gallery",
"version": "0.2.2",
"version": "0.2.3",
"description": "Creates an embeddable gallery based on selected page contents.",
"main": "./src/PageGalleryPlugin.ts",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const DEFAULT_CONFIG = {
export type Page = Record<string, any>

export type ImageConfig = {
columns?: number
height?: string
width?: string
position?: string
Expand Down
3 changes: 2 additions & 1 deletion src/views/PageGallery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
style:--image-width={config.width || null}
style:--image-position={config.position || null}
style:--image-repeat={config.repeat || null}
style:--image-fit={config.fit || null}>
style:--image-fit={config.fit || null}
style:--max-columns={config.columns || null}>
<PageGalleryFilter {query} />

<div class="page-gallery__tiles">
Expand Down
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"0.1.1": "0.15.0",
"0.2.0": "0.15.0",
"0.2.1": "0.15.0",
"0.2.2": "0.15.0"
}
"0.2.2": "0.15.0",
"0.2.3": "0.15.0"
}

0 comments on commit b1c67cb

Please sign in to comment.