Abstände: Mittelweg zwischen luftig und kompakt
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m52s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m37s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m43s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m18s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m17s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m52s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m25s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m38s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m37s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m43s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m18s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m17s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
33862183bf
commit
114811e6c5
72 changed files with 231 additions and 231 deletions
|
|
@ -23,7 +23,7 @@ defineEmits(['toggle', 'focus']);
|
|||
class="group/card relative rounded-lg border bg-card text-left shadow-xs transition-shadow hover:shadow-sm"
|
||||
:class="[compact ? 'w-54' : 'w-56', highlighted ? 'border-brand-400 ring-3 ring-brand-300/50' : '']"
|
||||
>
|
||||
<div class="flex items-center gap-3" :class="compact ? 'px-2.5 py-1.5' : 'px-3 pt-2.5 pb-2'">
|
||||
<div class="flex items-center gap-3" :class="compact ? 'px-3 py-2' : 'px-3.5 pt-3 pb-2.5'">
|
||||
<PersonAvatar :person="person" :class="compact ? 'size-7 text-[10px]' : 'size-10'" />
|
||||
<div class="min-w-0 flex-1">
|
||||
<p v-if="person.department && !compact" class="truncate text-[10.5px] font-semibold tracking-wide text-brand-text uppercase">{{ person.department }}</p>
|
||||
|
|
@ -45,7 +45,7 @@ defineEmits(['toggle', 'focus']);
|
|||
<button
|
||||
v-if="!compact && person.reports"
|
||||
type="button"
|
||||
class="flex w-full items-center justify-center gap-1.5 rounded-b-lg border-t py-1 text-xs font-medium hover:bg-accent"
|
||||
class="flex w-full items-center justify-center gap-1.5 rounded-b-lg border-t py-1.5 text-xs font-medium hover:bg-accent"
|
||||
:class="open ? 'bg-brand-soft/60 text-brand-soft-foreground' : 'text-muted-foreground'"
|
||||
:aria-expanded="open"
|
||||
@click="$emit('toggle')"
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ watch(() => props.focus, center);
|
|||
@pointerup="onPointerUp"
|
||||
@pointercancel="onPointerUp"
|
||||
>
|
||||
<div class="inline-block min-w-full px-6 pt-5 pb-6" :style="{ zoom: scale }">
|
||||
<div class="inline-block min-w-full px-8 pt-7 pb-8" :style="{ zoom: scale }">
|
||||
<ul class="org-tree">
|
||||
<OrgChartNode v-for="person in roots" :key="person.id" :person="person" :teams="teams" :open="open" :focus="focus" @focus="$emit('focus', $event)" />
|
||||
</ul>
|
||||
|
|
@ -124,7 +124,7 @@ watch(() => props.focus, center);
|
|||
|
||||
.org-tree ul {
|
||||
position: relative;
|
||||
padding-top: 16px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.org-tree li {
|
||||
|
|
@ -132,7 +132,7 @@ watch(() => props.focus, center);
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 16px 5px 0;
|
||||
padding: 20px 8px 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ watch(() => props.focus, center);
|
|||
top: 0;
|
||||
right: 50%;
|
||||
width: 50%;
|
||||
height: 16px;
|
||||
height: 20px;
|
||||
border-top: 1.5px solid var(--org-line);
|
||||
}
|
||||
|
||||
|
|
@ -188,7 +188,7 @@ watch(() => props.focus, center);
|
|||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
height: 16px;
|
||||
height: 20px;
|
||||
border-left: 1.5px solid var(--org-line);
|
||||
}
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ watch(() => props.focus, center);
|
|||
.org-members {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.org-members::before {
|
||||
|
|
@ -214,6 +214,6 @@ watch(() => props.focus, center);
|
|||
|
||||
.org-members-wide {
|
||||
grid-template-columns: repeat(2, 13.5rem);
|
||||
column-gap: 16px;
|
||||
column-gap: 20px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -38,11 +38,11 @@ const contact = computed(() => [
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div class="grid items-start gap-4" :class="{ 'lg:grid-cols-[minmax(0,1fr)_19rem]': chain.length || peers.length }">
|
||||
<div class="grid gap-4">
|
||||
<div class="grid items-start gap-5" :class="{ 'lg:grid-cols-[minmax(0,1fr)_19rem]': chain.length || peers.length }">
|
||||
<div class="grid gap-5">
|
||||
<!-- Person im Fokus -->
|
||||
<section class="overflow-hidden rounded-lg border bg-card">
|
||||
<div class="flex flex-col gap-4 p-4 sm:flex-row sm:items-center">
|
||||
<div class="flex flex-col gap-5 p-5 sm:flex-row sm:items-center">
|
||||
<PersonAvatar :person="details" class="size-20 text-xl ring-4 ring-brand-soft" />
|
||||
<div class="min-w-0 flex-1">
|
||||
<p v-if="details.department" class="text-[11px] font-semibold tracking-wide text-brand-text uppercase">{{ details.department }}</p>
|
||||
|
|
@ -70,8 +70,8 @@ const contact = computed(() => [
|
|||
</h3>
|
||||
<div v-if="reports.length" class="overflow-hidden rounded-b-lg">
|
||||
<ul class="-mr-px -mb-px grid sm:grid-cols-2 xl:grid-cols-3">
|
||||
<li v-for="person in reports" :key="person.id" class="border-r border-b">
|
||||
<button type="button" class="flex w-full items-center gap-3 px-4 py-2.5 text-left hover:bg-accent/60" @click="$emit('focus', person)">
|
||||
<li v-for="person in reports" :key="person.id" class="border-r border-b hover:bg-accent/60">
|
||||
<button type="button" class="flex w-full items-center gap-3 px-4 py-3 text-left" @click="$emit('focus', person)">
|
||||
<PersonAvatar :person="person" class="size-9" />
|
||||
<span class="min-w-0 flex-1">
|
||||
<span class="block truncate text-sm font-medium">{{ person.name }}</span>
|
||||
|
|
@ -101,7 +101,7 @@ const contact = computed(() => [
|
|||
</section>
|
||||
</div>
|
||||
|
||||
<aside v-if="chain.length || peers.length" class="grid gap-4">
|
||||
<aside v-if="chain.length || peers.length" class="grid gap-5">
|
||||
<section v-if="chain.length" class="rounded-lg border bg-card">
|
||||
<h3 class="flex items-center gap-2 border-b px-4 py-2.5 text-sm font-semibold"><ChevronUp class="size-4 text-brand-text" /> Berichtet an</h3>
|
||||
<ol class="p-2">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue