Skip to content

Commit

Permalink
Refactor FeedCard and ReaderViewContent CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
BumpyClock committed Mar 28, 2024
1 parent 548bdf3 commit d842ccd
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/components/FeedCard/FeedCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ sl-card {
filter: brightness(1.2)
}
.card h3 {
display: -webkit-box ;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
margin-bottom: 4px;
font-size: 18px;
Expand Down
2 changes: 0 additions & 2 deletions src/components/FeedCard/FeedCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ const FeedCard = ({ item }) => {
const [hover, setHover] = useState(false);
const [mouseDown, setMouseDown] = useState(false);
const [showReaderView, setShowReaderView] = useState(false);
console.log('showReaderView:', showReaderView);

const { isLoaded, isError, loadedImage } = useImageLoader(item.thumbnail);

Expand Down Expand Up @@ -158,7 +157,6 @@ const FeedCard = ({ item }) => {
</div>
</SlCard>
{showReaderView && <ReaderView url={item.link} item={item} onClose={() => {
console.log('onClose called');
setShowReaderView(false);
}} />} </div>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/ReaderViewContent/ReaderViewContent.css
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
.reader-view-article video {
max-width: 100%;
height: 100%;
max-height: 350px;
aspect-ratio: auto;
display: block;
margin: 12px auto;
Expand Down
1 change: 0 additions & 1 deletion src/components/ReaderViewContent/ReaderViewContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import "./ReaderViewContent.css";
name="xmark"
class="reader-view-header-button"
onClick={() => {
console.log('Close button clicked');
onClose();
}}
/>
Expand Down
5 changes: 3 additions & 2 deletions src/components/website-info/website-info.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
padding: 0;
border: none!important;
box-shadow: none;
background: white;
/* background: white; */
max-width: 120px;
width: 50%;
height: 50%;
Expand All @@ -14,7 +14,8 @@

.website-info img {
width: auto;
height: 32px !important;
height: auto;
max-height: 20px !important;
}

.website-info, .site-name {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@
color: var(--color);
display: flex;
flex-direction: column;
width: -webkit-fill-available
width: -webkit-fill-available;
margin-bottom: 48px !important;
}
#subscribed-feeds-list .list-item img {
width: fit-content;
Expand Down
1 change: 1 addition & 0 deletions src/pages/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ useEffect(() => {
}
}
}
console.log("Imported URLs:", urls);

setFeedUrls([...new Set([...feedUrls, ...urls])]); // Use Set to avoid duplicates
};
Expand Down

0 comments on commit d842ccd

Please sign in to comment.