Skip to content

Commit

Permalink
replace unicode characters: folder and open folder, by correspondig p…
Browse files Browse the repository at this point in the history
…ng images.
  • Loading branch information
the-last-pastafarian committed Mar 5, 2024
1 parent 93cf53b commit 9eb732a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
22 changes: 22 additions & 0 deletions server/assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,25 @@ nav {
transform: rotate(360deg);
}
}

.folder-icon::before{
content: "";
background-image:url(/images/icon_folder.png);
background-size: 100% 100%;
display: inline-block;
height: 25px;
width:25px;
position:relative;
top:5px;
}

.open-folder-icon::before{
content: "";
background-image: url(/images/icon_open_folder.png);
background-size: 100% 100%;
display: inline-block;
height: 25px;
width:25px;
position:relative;
top:5px;
}
8 changes: 4 additions & 4 deletions server/lib/field_hub_web/live/project_show_live.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@
<%= for {{type, severity}, issues} <- issue_groups do %>
<section id={"#{type}-issue-group"} class="issue-group hide">
<h3 class={issue_classes(severity)}>
<span class="show-toggle" style="cursor: pointer;" phx-click={JS.remove_class("hide", to: "##{type}-issue-group")}>
🗀 <%= get_issue_type_label(type) %> (<%= Enum.count(issues) %>)
<span class="show-toggle folder-icon" style="cursor: pointer;" phx-click={JS.remove_class("hide", to: "##{type}-issue-group")}>
<%= get_issue_type_label(type) %> (<%= Enum.count(issues) %>)
</span>
<span class="hide-toggle" style="cursor: pointer;" phx-click={JS.add_class("hide", to: "##{type}-issue-group")}>
🗁 <%= get_issue_type_label(type) %> (<%= Enum.count(issues) %>)
<span class="hide-toggle open-folder-icon" style="cursor: pointer;" phx-click={JS.add_class("hide", to: "##{type}-issue-group")}>
<%= get_issue_type_label(type) %> (<%= Enum.count(issues) %>)
</span>
</h3>

Expand Down
Binary file added server/priv/static/images/icon_folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added server/priv/static/images/icon_open_folder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9eb732a

Please sign in to comment.