Skip to content

Commit 7937ece

Browse files
committed
Fix iOS theme color to use hex for compatibility and show time in probe result popover
1 parent d934089 commit 7937ece

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

app/assets/stylesheets/upright/application.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@
506506
font-size: var(--text-x-small);
507507
}
508508

509+
.artifact-probe-time {
510+
color: var(--color-ink-light);
511+
font-size: var(--text-x-small);
512+
}
513+
509514
.artifact-title {
510515
color: var(--color-ink-medium);
511516
font-size: var(--text-x-small);

app/views/layouts/upright/application.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<title>Upright</title>
55
<meta name="viewport" content="width=device-width,initial-scale=1">
6-
<meta name="theme-color" content="oklch(100% 0 0)" media="(prefers-color-scheme: light)">
7-
<meta name="theme-color" content="oklch(18% 0.04 250)" media="(prefers-color-scheme: dark)">
6+
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
7+
<meta name="theme-color" content="#1f2937" media="(prefers-color-scheme: dark)">
88
<%= csrf_meta_tags %>
99
<%= csp_meta_tag %>
1010
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="">

app/views/upright/active_storage/attachments/_attachment.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<% if probe_result.probe_target.present? %>
99
<div class="artifact-probe-target"><%= probe_result.probe_target %></div>
1010
<% end %>
11+
<div class="artifact-probe-time" title="<%= probe_result.created_at.to_fs(:db) %>"><%= time_ago_in_words(probe_result.created_at) %> ago</div>
1112
<% end %>
1213
<h3 class="artifact-title"><%= artifact_icon(attachment) %> <%= attachment.filename %></h3>
1314
</div>

0 commit comments

Comments
 (0)