Skip to content

Commit 266c64a

Browse files
committed
truncate long card header title
1 parent bbfbc7d commit 266c64a

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/assets/App.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,16 @@ a {
252252
padding-bottom: 8px;
253253
cursor: pointer;
254254
}
255+
256+
.blockHeader .maxTitle {
257+
margin: 0;
258+
padding: 0;
259+
line-height: 13px;
260+
white-space: nowrap;
261+
overflow: hidden;
262+
text-overflow: ellipsis;
263+
max-width: 180px;
264+
}
255265
.blockHeader:hover .blockHeaderLink {
256266
opacity: 1;
257267
}
@@ -273,7 +283,7 @@ a {
273283
height: 18px;
274284
}
275285
.blockHeaderIcon .rss {
276-
color:#ee802f;
286+
color: #ee802f;
277287
}
278288
.blockRow {
279289
scroll-snap-align: start;

src/features/cards/components/rssCard/CustomRssCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function CustomRssCard({ meta, withAds }: CardPropsType) {
1515
const HeaderTitle = () => {
1616
return (
1717
<div style={{ display: 'inline-block', margin: 0, padding: 0 }}>
18-
<span> {meta.label} </span>
18+
<p className="maxTitle"> {meta.label} </p>
1919
</div>
2020
)
2121
}

0 commit comments

Comments
 (0)