Skip to content

Commit

Permalink
fix(web): add cursor text
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 5, 2024
1 parent 473b6dd commit 2323f14
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/frontend/web/app/layouts/Sidebar/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
@apply: truncate;
}

.collection-container .collection-item-title[contenteditable='plaintext-only'] {
@apply: cursor-text;
}

.collection-container .collection-item:hover .collection-item-title,
.collection-container .collection-item:has([data-state='open']) .collection-item-title {
@apply: lg:max-w-[145px] lt-lg:max-w-[245px];
Expand Down
15 changes: 11 additions & 4 deletions apps/frontend/web/app/routes/resources.($page)/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,24 @@ export function Filter(props: Props) {
{(search.length !== 0 || include.length !== 0 || keywords.length !== 0) && (
<div className="flex items-center gap4 pt-4">
<Button
variant="default"
variant="outline"
size="sm"
className="add-collection"
onClick={() => addToCollection()}
>
<span className="i-carbon:bookmark mr1"></span>
<span>添加到收藏夹</span>
</Button>
<Button
variant="outline"
size="sm"
className="copy-rss"
data-rss={feedURL}
onClick={(e) => copyRSS(e)}
>
<span className="i-carbon-rss mr1"></span>
<span>复制 RSS 订阅链接</span>
</Button>
<Button size="sm" className="add-collection" onClick={() => addToCollection()}>
<span>添加到收藏夹</span>
</Button>
<SearchTooltip />
</div>
)}
Expand Down

0 comments on commit 2323f14

Please sign in to comment.