mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Fix overflow problem in Border component
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user