Skip to content

Commit 4f3998f

Browse files
committed
style: Update styling in app details page for consistency
1 parent 6a5173f commit 4f3998f

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

src/views/pages/apps-id-channels.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div style="display: flex; flex-direction: column; gap: 10px; max-width: 100%; overflow-x: hidden;">
1+
<div style="display: flex; flex-direction: column; gap: 10px; max-width: 100%;">
22

33
<div style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;">
44
<h2 style="margin: 0;">Channels</h2>
@@ -16,7 +16,7 @@ <h2 style="margin: 0;">Channels</h2>
1616
<% } %>
1717

1818
<% if (!app.channels.length) { %>
19-
<article style="border-style: dashed; padding: 10px; border-radius: 5px;">
19+
<article style="border-style: dashed; padding: 10px; border-radius: 5px; max-width: 100%;">
2020
<p>There are no channels currently</p>
2121
</article>
2222
<% } %>

src/views/pages/apps-id-notifications.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div style="display: flex; flex-direction: column; gap: 10px;">
1+
<div style="display: flex; flex-direction: column; gap: 10px; max-width: 100%;">
22
<h2>Notifications</h2>
33

44
<% app.notifications.forEach(n => { %>
@@ -22,7 +22,7 @@ <h2>Notifications</h2>
2222
<% }) %>
2323

2424
<% if (!app.notifications.length) { %>
25-
<div style="border-radius: 5px; border: dashed; padding: 10px;">
25+
<div style="border-radius: 5px; border: dashed; padding: 10px; max-width: fit-content;">
2626
<p>There are no notifications currently</p>
2727
</div>
2828
<% } %>

src/views/pages/apps-id.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
<div style="border-radius: 5px; border-style: dashed; padding: 10px;">
2-
<h2>App</h2>
3-
<pre><%= JSON.stringify(app, null, 2) %></pre>
1+
<div style="display: flex; flex-direction: column; gap: 10px; max-width: 100%;">
2+
3+
<div style="display: flex; justify-content: space-between; align-items: center;">
4+
<h2 style="margin: 0;">App</h2>
5+
<a href="/apps/<%= app.id %>/edit">Edit</a>
6+
</div>
7+
8+
<div style="display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px; border: dashed; padding: 10px; border-radius: 5px; width: fit-content; max-width: 100%;">
9+
<div><strong>ID:</strong></div>
10+
<div><%= app.id %></div>
11+
<div><strong>Name:</strong></div>
12+
<div><%= app.name %></div>
13+
<div><strong>Status:</strong></div>
14+
<div><%= app.is_active ? 'Active' : 'Inactive' %></div>
15+
<div><strong>Created:</strong></div>
16+
<div><%= new Date(app.created_at).toLocaleString() %></div>
17+
<div><strong>Updated:</strong></div>
18+
<div><%= new Date(app.updated_at).toLocaleString() %></div>
19+
</div>
20+
421
</div>

0 commit comments

Comments
 (0)