Skip to content

Commit c33b163

Browse files
fix: fix user dropdown
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
1 parent ce57b29 commit c33b163

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

web/src/components/projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const Projects = () => {
6262
if (isError)
6363
return (
6464
<div className={styles.info}>
65-
<h1>Failed to load data</h1>
65+
<h1>Failed to load dashboard</h1>
6666
</div>
6767
);
6868

web/src/components/settings/tables.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,7 @@ export const ProjectsTable = () => {
7878
{
7979
id: "displayName",
8080
header: "Name",
81-
render: (row) => <span>{row.displayName}</span>,
82-
nowrap: true,
83-
},
84-
{
85-
id: "id",
86-
header: "ID",
87-
render: (row) => <i>{row.id}</i>,
81+
render: (row) => <span data-tooltip={`ID: ${row.id}`}>{row.displayName}</span>,
8882
nowrap: true,
8983
},
9084
{

web/src/components/toast.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.toast {
1313
padding: 0.8rem 1.1rem;
1414
font-size: 0.9rem;
15-
color: #fff;
15+
color: #000;
1616
box-shadow: var(--pico-card-box-shadow);
1717
border-radius: var(--pico-border-radius, 0.5rem);
1818
}

web/src/components/userInfo.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
details.user {
22
margin: 0;
3+
position: initial;
34

45
summary {
56
display: flex;

web/src/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ hr {
7979

8080
details.dropdown.right summary + ul {
8181
left: unset;
82-
right: 2rem;
83-
transform: translateX(4px) translateY(-2px);
82+
right: 0;
83+
transform: translateX(-4px);
8484
min-width: 11rem;
8585
width: auto;
8686
}

web/src/layouts/Layout.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const { title } = Astro.props;
2222
</ul>
2323
<ul>
2424
<li class="login"><LoginButton client:only="react" /></li>
25-
2625
</ul>
2726
</nav>
2827
</header>
@@ -36,6 +35,10 @@ const { title } = Astro.props;
3635
flex: 1;
3736
}
3837

38+
.login {
39+
position: relative;
40+
}
41+
3942
nav {
4043
height: 3rem;
4144
}

0 commit comments

Comments
 (0)