Skip to content

Commit

Permalink
0.9.15
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-cen committed Apr 21, 2024
1 parent 8ca2d15 commit e1b75a7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
28 changes: 15 additions & 13 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -86385,7 +86385,7 @@ var toggleNode = {
styles: {
width: `'16px'`,
height: `'16px'`,
transform: `'rotate(0deg)'`
transform: `'rotate(90deg)'`
},
actions: {
onClick: `$saveState({ toggle: {props: { value: !toggle.props.value }} })`
Expand Down Expand Up @@ -86781,7 +86781,8 @@ var calendarView = {
width: `'100%'`,
height: `'auto'`,
layout: `'grid'`,
"--mk-grid-columns": `'7'`
"--mk-grid-columns": `'7'`,
"--mk-grid-width": `'0'`
}
),
frameRootWithProps(
Expand Down Expand Up @@ -86971,7 +86972,8 @@ var cardsListItem = {
layout: `"column"`,
overflow: `'hidden'`,
borderRadius: `'8px'`,
width: `'250px'`,
width: `'100%'`,
height: `'100%'`,
border: `'1px solid var(--mk-ui-border)'`,
boxShadow: `'var(--mk-shadow-card)'`
},
Expand Down Expand Up @@ -87112,7 +87114,7 @@ var cardListItem = {
layout: `"column"`,
overflow: `'hidden'`,
borderRadius: `'8px'`,
width: `'250px'`,
width: `'100%'`,
border: `'1px solid var(--mk-ui-border)'`
},
actions: {
Expand Down Expand Up @@ -87545,7 +87547,8 @@ var columnGroup = {
{
gap: `'8px'`,
layout: `'column'`,
width: `'100%'`
width: `'100%'`,
alignItems: `'stretch'`
}
),
frameRootWithProps(
Expand Down Expand Up @@ -87650,9 +87653,10 @@ var gridGroup = {
{},
{
gap: `'8px'`,
layout: `'row'`,
layout: `'grid'`,
width: `'100%'`,
flexWrap: `'wrap'`
"--mk-grid-columns": `'auto-fill'`,
"--mk-grid-width": `'250px'`
}
)
]
Expand Down Expand Up @@ -112936,15 +112940,13 @@ var FilterBar = (props) => {
};
if (col.type.startsWith("option")) {
const offset2 = e4.target.getBoundingClientRect();
const options = parseFieldValue(col.value, col.type).options;
props.superstate.ui.openMenu(offset2, {
ui: props.superstate.ui,
multi: true,
editable: false,
value: parseMultiString(filter2.value),
options: parseMultiString(col.value).map((f2) => ({
name: f2,
value: f2
})),
options: options ?? [],
saveOptions,
placeholder: i18n_default.labels.optionItemSelectPlaceholder,
searchable: true,
Expand Down Expand Up @@ -122931,7 +122933,7 @@ var BannerView = (props) => {
setBanner(null);
}
}, [pathState]);
const offset2 = pathState?.metadata.property?.banner_y ?? 0;
const offset2 = pathState?.metadata.property?.banner_y ? `calc(50% + ${pathState?.metadata.property?.banner_y.toString()}px)` : "center";
const triggerBannerContextMenu = (e4) => {
e4.preventDefault();
const menuOptions = [
Expand Down Expand Up @@ -122981,7 +122983,7 @@ var BannerView = (props) => {
onContextMenu: triggerBannerContextMenu,
style: {
backgroundImage: `url(${banner.scheme == "vault" ? props.superstate.ui.getUIPath(banner.basePath) : banner.fullPath})`,
backgroundPositionY: offset2.toString() + "px"
backgroundPositionY: offset2
}
}), /* @__PURE__ */ import_react155.default.createElement("div", {
className: `mk-spacer`,
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "make-md",
"name": "MAKE.md",
"version": "0.9.14",
"version": "0.9.15",
"minAppVersion": "0.16.0",
"description": "Make.md brings powerful and modern note-taking features to Obsidian. Capture, organize and connect information with more flexibility without any code.",
"author": "MAKE.md",
Expand Down
5 changes: 3 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2659,6 +2659,8 @@ body .markdown-source-view.mod-cm6.mod-cm6.is-readable-line-width .mk-inline-tit
width: 100%;
user-select: none;
height: 200px;
background-size: cover;
background-position-y: center;
}
.mk-space-banner img {
height: 200px;
Expand Down Expand Up @@ -3537,8 +3539,7 @@ body:not(.is-mobile) .mk-tree-wrapper .mk-folder-buttons {
}
.mk-layout-grid {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
grid-gap: 1px;
grid-template-columns: repeat(var(--mk-grid-columns), minmax(var(--mk-grid-width), 1fr));
}
.mk-layout-masonry {
column-count: 3;
Expand Down

0 comments on commit e1b75a7

Please sign in to comment.