Fix overflow problem in Border component

This commit is contained in:
Rūdolfs Ošiņš
2024-10-23 12:09:41 +02:00
parent 5277028e1a
commit f5c35b2d31
2 changed files with 9 additions and 6 deletions
+6 -2
View File
@@ -9,6 +9,7 @@
export let styleWidth: string | undefined = undefined;
export let styleCursor: "default" | "pointer" = "default";
export let styleGap: string = "0.5rem";
export let styleOverflow: string | undefined = undefined;
$: style =
`--local-button-color-1: var(--color-fill-${variant});` +
@@ -66,7 +67,6 @@
grid-area: p3-3;
display: flex;
align-items: center;
overflow: hidden;
}
.p3-4 {
grid-area: p3-4;
@@ -173,7 +173,11 @@
<div class="pixel p3-1"></div>
<div class="pixel p3-2"></div>
<div class="pixel p3-3" style:padding={stylePadding} style:gap={styleGap}>
<div
class="pixel p3-3"
style:padding={stylePadding}
style:gap={styleGap}
style:overflow={styleOverflow}>
<slot />
</div>
<div class="pixel p3-4"></div>
+3 -4
View File
@@ -19,11 +19,9 @@
margin-top: 1rem;
justify-content: space-between;
}
.title {
.description {
color: var(--color-fill-gray);
margin-top: 4px;
overflow: hidden;
text-overflow: ellipsis;
}
.container {
width: 100%;
@@ -35,12 +33,13 @@
styleCursor="pointer"
styleWidth="100%"
stylePadding="8px 12px"
styleOverflow="hidden"
hoverable
{onclick}>
<div class="container txt-small">
<RepoHeader {repo} {selfDid} />
<div class="title" title={project.data.description}>
<div class="description txt-overflow" title={project.data.description}>
{#if project.data.description}
{project.data.description}
{:else}