Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Onboarding components fixes#1393

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
levkk merged 27 commits intomasterfromlevkk-onboarding-fixes
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
27 commits
Select commitHold shift + click to select a range
d77a085
Onboarding fixes
levkkApr 2, 2024
56f8d5b
remove hover animation
levkkApr 2, 2024
288b930
gray heading
levkkApr 2, 2024
119c20e
Secondary card
levkkApr 2, 2024
52f6f58
more actions
levkkApr 2, 2024
8e0eddd
input value
levkkApr 2, 2024
ab12345
required input
levkkApr 2, 2024
1e58f5f
rgb link action
levkkApr 3, 2024
1356a7a
cost frequency
levkkApr 3, 2024
7c33e42
card
levkkApr 3, 2024
d88f3d5
input unit
levkkApr 3, 2024
c2e4efc
zindex
levkkApr 3, 2024
f8b6144
preserve scroll
levkkApr 3, 2024
39f901c
warning
levkkApr 3, 2024
b7c6cad
link
levkkApr 4, 2024
6d1b89e
link
levkkApr 4, 2024
c81672a
set active
levkkApr 4, 2024
ba0ecab
save
levkkApr 4, 2024
d7adb48
is_active
levkkApr 4, 2024
e1f4fc3
change event
levkkApr 4, 2024
e569e9f
remove
levkkApr 4, 2024
c26fde7
fix input field
levkkApr 5, 2024
821c393
css
levkkApr 5, 2024
6b35316
Revert "css"
levkkApr 5, 2024
4879161
fix input again
levkkApr 5, 2024
abf06fe
fix input unit
levkkApr 5, 2024
8ea6cef
dead code
levkkApr 8, 2024
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
PrevPrevious commit
NextNext commit
gray heading
  • Loading branch information
@levkk
levkk committedApr 4, 2024
commit288b930d978b1bb659b60b7e2fde313bbfe1e3b7
3 changes: 3 additions & 0 deletionspgml-dashboard/src/components/headings/gray/gray.scss
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
span[data-controller="headings-gray"] {
color: #{$gray-400};
}
Comment on lines +1 to +3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

You could add color = gray-400 to the typography.scss file and just use the class here. Utility classes for the gray scale is always nice.

levkk reacted with thumbs up emoji
18 changes: 18 additions & 0 deletionspgml-dashboard/src/components/headings/gray/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
use sailfish::TemplateOnce;
use pgml_components::component;

#[derive(TemplateOnce, Default)]
#[template(path = "headings/gray/template.html")]
pub struct Gray {
value: String,
}

impl Gray {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

If we want to go down this road, maybe one heading that takes a color, or has a setter function for the desired color, rather than a new component for every header.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yeah I agree, these are too small to be individual components.

pub fn new(value: impl ToString) -> Gray {
Gray {
value: value.to_string(),
}
}
}

component!(Gray);
4 changes: 4 additions & 0 deletionspgml-dashboard/src/components/headings/gray/template.html
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
<span
data-controller="headings-gray">
<%= value %>
</span>
4 changes: 4 additions & 0 deletionspgml-dashboard/src/components/headings/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,10 @@
pub mod blue;
pub use blue::Blue;

// src/components/headings/gray
pub mod gray;
pub use gray::Gray;

// src/components/headings/green
pub mod green;
pub use green::Green;

[8]ページ先頭

©2009-2025 Movatter.jp