Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class name + other minor fixes #1293

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fastn-js/js/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ class Node2 {
attachCss(property, value, createClass, className) {
let propertyShort = fastn_dom.propertyMap[property] || property;
propertyShort = `__${propertyShort}`;
let cls = `${propertyShort}-${JSON.stringify(value)}`;
let cls = `${propertyShort}-${JSON.stringify(fastn_dom.class_count)}`;
if (!!className) {
cls = className;
} else {
Expand Down Expand Up @@ -1236,7 +1236,7 @@ class Node2 {
this.attachCss("align-items", "end");
break;
case 'bottom-center':
this.attachCss("justify-content", "start");
this.attachCss("justify-content", "center");
this.attachCss("align-items", "end");
break;
case 'bottom-right':
Expand Down
22 changes: 11 additions & 11 deletions ftd/t/js/01-basic-module.html

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

10 changes: 6 additions & 4 deletions ftd/t/js/02-property.html

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

732 changes: 555 additions & 177 deletions ftd/t/js/03-common-properties.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion ftd/t/js/04-variable.html

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

3 changes: 2 additions & 1 deletion ftd/t/js/05-dynamic-dom-list.html

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

3 changes: 2 additions & 1 deletion ftd/t/js/06-dynamic-dom-list-2.html

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

37 changes: 23 additions & 14 deletions ftd/t/js/08-inherited.html

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

88 changes: 52 additions & 36 deletions ftd/t/js/09-text-properties.html

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

23 changes: 12 additions & 11 deletions ftd/t/js/10-color-test.html

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

5 changes: 3 additions & 2 deletions ftd/t/js/12-children.html

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

Loading