Skip to content

Commit 9c69a73

Browse files
committed
fix(subscription): reduce spacing in template links and show OS in apps
1 parent c3acf29 commit 9c69a73

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

app/templates/subscription/index.html

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
background: hsl(var(--card));
8888
border: 1px solid hsl(var(--border));
8989
border-radius: 8px;
90-
padding: 20px;
90+
padding: 16px;
9191
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
9292
transition: background-color 0.3s, border-color 0.3s;
9393
}
@@ -162,7 +162,7 @@
162162
background: hsl(var(--muted));
163163
border: 1px solid hsl(var(--border));
164164
border-radius: 6px;
165-
padding: 16px;
165+
padding: 12px;
166166
margin-bottom: 16px;
167167
transition: background-color 0.3s, border-color 0.3s;
168168
}
@@ -181,20 +181,25 @@
181181
background: hsl(var(--card));
182182
border: 1px solid hsl(var(--border));
183183
border-radius: 6px;
184-
padding: 8px;
184+
padding: 6px;
185185
margin-bottom: 8px;
186-
gap: 8px;
186+
gap: 6px;
187187
transition: background-color 0.3s, border-color 0.3s;
188188
}
189189

190190
.link-input {
191191
flex: 1;
192+
min-width: 0;
193+
width: 100%;
192194
border: none;
193195
background: transparent;
194196
font-size: 0.8rem;
195197
color: hsl(var(--foreground));
196198
outline: none;
199+
padding: 4px 8px;
197200
font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
201+
overflow: hidden;
202+
text-overflow: ellipsis;
198203
}
199204

200205
.copy-button, .qr-button {
@@ -279,6 +284,18 @@
279284
margin-bottom: 8px;
280285
}
281286

287+
.platform-badge {
288+
display: inline-block;
289+
background: hsl(var(--accent));
290+
color: hsl(var(--accent-foreground));
291+
padding: 2px 8px;
292+
border-radius: 4px;
293+
font-size: 0.75rem;
294+
font-weight: 500;
295+
text-transform: capitalize;
296+
margin-top: 4px;
297+
}
298+
282299
.application-card p {
283300
color: hsl(var(--muted-foreground));
284301
line-height: 1.4;
@@ -571,7 +588,12 @@ <h2 style="text-align: center; font-size: 1.8rem; font-weight: 600; margin-botto
571588
{% if app.icon_url %}
572589
<img src="{{ app.icon_url }}" alt="{{ app.name }}" class="app-icon" />
573590
{% endif %}
574-
<h3>{{ app.name }} {% if app.recommended %}(Recommended){% endif %}</h3>
591+
<div style="flex: 1;">
592+
<h3>{{ app.name }} {% if app.recommended %}(Recommended){% endif %}</h3>
593+
{% if app.platform %}
594+
<span class="platform-badge">{{ app.platform.value }}</span>
595+
{% endif %}
596+
</div>
575597
</div>
576598
{% if app.description["en"] %}
577599
<p>{{ app.description["en"] }}</p>

0 commit comments

Comments
 (0)