Skip to content

fix windows checkmark div size #1396

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

Merged
merged 1 commit into from
Apr 5, 2024
Merged
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 pgml-dashboard/src/components/icons/checkmark/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
let mut rng = rand::thread_rng();
let id = rng.gen::<u16>();
%>
<div data-controller="icons-checkmark">
<div data-controller="icons-checkmark" class="d-flex">
<% if twitter {%>
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22" fill="none">
<path d="M20.396 11C20.378 10.354 20.181 9.725 19.826 9.184C19.472 8.644 18.974 8.212 18.388 7.938C18.611 7.331 18.658 6.674 18.528 6.041C18.397 5.407 18.091 4.823 17.646 4.354C17.176 3.909 16.593 3.604 15.959 3.472C15.326 3.342 14.669 3.389 14.062 3.612C13.789 3.025 13.358 2.526 12.817 2.172C12.276 1.818 11.647 1.62 11 1.604C10.354 1.621 9.727 1.817 9.187 2.172C8.647 2.527 8.218 3.026 7.947 3.612C7.339 3.389 6.68 3.34 6.045 3.472C5.41 3.602 4.825 3.908 4.355 4.354C3.91 4.824 3.606 5.409 3.477 6.042C3.347 6.675 3.397 7.332 3.621 7.938C3.034 8.212 2.534 8.643 2.178 9.183C1.822 9.723 1.623 10.353 1.604 11C1.624 11.647 1.822 12.276 2.178 12.817C2.534 13.357 3.034 13.789 3.621 14.062C3.397 14.668 3.347 15.325 3.477 15.958C3.607 16.592 3.91 17.176 4.354 17.646C4.824 18.089 5.408 18.393 6.041 18.524C6.674 18.656 7.331 18.608 7.938 18.388C8.212 18.974 8.643 19.472 9.184 19.827C9.724 20.181 10.354 20.378 11 20.396C11.647 20.38 12.276 20.183 12.817 19.829C13.358 19.475 13.789 18.975 14.062 18.389C14.666 18.628 15.328 18.685 15.965 18.553C16.601 18.421 17.185 18.106 17.645 17.646C18.105 17.186 18.421 16.602 18.553 15.965C18.685 15.328 18.628 14.666 18.388 14.062C18.974 13.788 19.472 13.357 19.827 12.816C20.181 12.276 20.378 11.646 20.396 11ZM9.662 14.85L6.233 11.422L7.526 10.12L9.598 12.192L13.998 7.398L15.345 8.644L9.662 14.85Z" fill="#1D9BF0"/>
</svg>
<% } else {%>

<div class="<%- state %>">
<div class="d-flex <%- state %>">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M6.80486 9.80731L4.84856 7.85103C4.73197 7.73443 4.58542 7.67478 4.4089 7.67208C4.23238 7.66937 4.08312 7.72902 3.96113 7.85103C3.83913 7.97302 3.77814 8.12093 3.77814 8.29474C3.77814 8.46855 3.83913 8.61645 3.96113 8.73844L6.27206 11.0494C6.42428 11.2016 6.60188 11.2777 6.80486 11.2777C7.00782 11.2777 7.18541 11.2016 7.33764 11.0494L12.0227 6.36435C12.1393 6.24776 12.1989 6.10121 12.2016 5.92469C12.2043 5.74817 12.1447 5.59891 12.0227 5.47692C11.9007 5.35493 11.7528 5.29393 11.579 5.29393C11.4051 5.29393 11.2572 5.35493 11.1353 5.47692L6.80486 9.80731ZM8.00141 16C6.89494 16 5.85491 15.79 4.88132 15.3701C3.90772 14.9502 3.06082 14.3803 2.34064 13.6604C1.62044 12.9405 1.05028 12.094 0.63017 11.1208C0.210057 10.1477 0 9.10788 0 8.00141C0 6.89494 0.209966 5.85491 0.629896 4.88132C1.04983 3.90772 1.61972 3.06082 2.33958 2.34064C3.05946 1.62044 3.90598 1.05028 4.87915 0.630171C5.8523 0.210058 6.89212 0 7.99859 0C9.10506 0 10.1451 0.209966 11.1187 0.629897C12.0923 1.04983 12.9392 1.61972 13.6594 2.33959C14.3796 3.05946 14.9497 3.90598 15.3698 4.87915C15.7899 5.8523 16 6.89212 16 7.99859C16 9.10506 15.79 10.1451 15.3701 11.1187C14.9502 12.0923 14.3803 12.9392 13.6604 13.6594C12.9405 14.3796 12.094 14.9497 11.1208 15.3698C10.1477 15.7899 9.10788 16 8.00141 16Z" fill="url(#paint0_linear_1258_466_<%- id%>)"/>
<defs >
Expand Down