mirror of
https://github.com/skoelle/icloud-contacts-sync.git
synced 2026-09-17 15:30:24 +00:00
web custom links try layout again
This commit is contained in:
@@ -48,32 +48,24 @@
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-layout {
|
|
||||||
display: flex;
|
|
||||||
gap: 1.5rem;
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.contact-card {
|
.contact-card {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 1rem 1.25rem;
|
padding: 1rem 1.25rem;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||||
flex: 1;
|
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.custom-links-box {
|
.custom-links-box {
|
||||||
|
position: fixed;
|
||||||
|
top: 2rem;
|
||||||
|
right: 2rem;
|
||||||
width: 280px;
|
width: 280px;
|
||||||
flex-shrink: 0;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 1rem 1.25rem;
|
padding: 1rem 1.25rem;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||||
}
|
max-height: calc(100vh - 4rem);
|
||||||
|
overflow-y: auto;
|
||||||
.links-spacer {
|
|
||||||
flex: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.quicklink-item {
|
.quicklink-item {
|
||||||
@@ -263,14 +255,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1100px) {
|
@media (max-width: 1100px) {
|
||||||
.custom-links-box,
|
.custom-links-box {
|
||||||
.links-spacer {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-layout {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@@ -279,10 +266,7 @@
|
|||||||
<h1><a href="/" style="text-decoration:none;color:inherit;display:inline-flex;align-items:center;gap:0.4rem"><img src="/static/favicon.svg" alt="" style="height:1.5em;width:1.5em;vertical-align:middle">Kontakte</a></h1>
|
<h1><a href="/" style="text-decoration:none;color:inherit;display:inline-flex;align-items:center;gap:0.4rem"><img src="/static/favicon.svg" alt="" style="height:1.5em;width:1.5em;vertical-align:middle">Kontakte</a></h1>
|
||||||
<a href="/search{% if search %}?search={{ search }}{% endif %}" class="back-link">← Zurück zur Liste</a>
|
<a href="/search{% if search %}?search={{ search }}{% endif %}" class="back-link">← Zurück zur Liste</a>
|
||||||
|
|
||||||
<div class="contact-layout">
|
<div class="contact-card">
|
||||||
<div class="links-spacer"></div>
|
|
||||||
|
|
||||||
<div class="contact-card">
|
|
||||||
<div class="contact-header">
|
<div class="contact-header">
|
||||||
<div>
|
<div>
|
||||||
<div class="contact-name">{{ contact.full_name or '(Kein Name)' }}</div>
|
<div class="contact-name">{{ contact.full_name or '(Kein Name)' }}</div>
|
||||||
@@ -402,22 +386,21 @@
|
|||||||
<div class="section-title">Notizen</div>
|
<div class="section-title">Notizen</div>
|
||||||
<div class="notes-content">{{ contact.notes }}</div>
|
<div class="notes-content">{{ contact.notes }}</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if custom_links %}
|
|
||||||
<div class="custom-links-box">
|
|
||||||
<div class="section-title">Schnelllinks</div>
|
|
||||||
<div class="section-list">
|
|
||||||
{% for link in custom_links %}
|
|
||||||
<a href="{{ link.url | replace('[fullname]', contact.full_name | urlquote) }}" target="_blank" class="quicklink-item">
|
|
||||||
{{ link.label }}
|
|
||||||
</a>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if custom_links %}
|
||||||
|
<div class="custom-links-box">
|
||||||
|
<div class="section-title">Schnelllinks</div>
|
||||||
|
<div class="section-list">
|
||||||
|
{% for link in custom_links %}
|
||||||
|
<a href="{{ link.url | replace('[fullname]', contact.full_name | urlquote) }}" target="_blank" class="quicklink-item">
|
||||||
|
{{ link.label }}
|
||||||
|
</a>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if contact.photo_url %}
|
{% if contact.photo_url %}
|
||||||
|
|||||||
Reference in New Issue
Block a user