Skip to content

Commit

Permalink
Merge pull request #36 from azvyae/layouts/fix-footer-responsivity
Browse files Browse the repository at this point in the history
Fix responsivity
  • Loading branch information
azvyae authored Oct 10, 2024
2 parents e683405 + 7a517ef commit b090361
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/app/stories/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ function FilteringHandler({
data-item="search-button"
onClick={() => {
setShowSearch((cur) => {
input.current?.focus();
if (!cur) {
input.current?.focus();
} else {
input.current?.blur();
}
if (cur && !input.current?.value && search) {
router.push('/stories');
router.refresh();
Expand Down
8 changes: 4 additions & 4 deletions src/components/footer/autobacklink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ function AutoBacklinks() {
.map((_, i) => (
<div
key={i}
className={`w-fit flex gap-2 whitespace-nowrap items-center font-medium transition-colors rounded text-[#5a685d] dark:text-light py-1 relative`}
className={`w-fit flex gap-1 whitespace-nowrap items-center font-medium transition-colors rounded text-[#5a685d] dark:text-light py-1 relative`}
>
<div className="flex relative items-center h-full gap-2">
<div className="flex relative items-center h-full gap-1">
<span
style={{
width: 64 + (i % 2 === 0 ? i : i * 16),
Expand All @@ -49,10 +49,10 @@ function AutoBacklinks() {
href={item.url}
target="_blank"
rel="noopener noreferrer"
className={`w-fit flex gap-2 whitespace-nowrap font-medium transition-colors rounded group text-[#5a685d] dark:text-light py-1 relative`}
className={`w-fit flex gap-1 whitespace-nowrap font-medium transition-colors rounded group text-[#5a685d] dark:text-light py-1 relative`}
title={`Visit ${item.label}`}
>
<div className="flex relative items-center gap-2">
<div className="flex relative items-center gap-1">
{item.label}
<span className="border-b-2 group-hover:w-full w-0 transition-[width] absolute bottom-0"></span>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function Footer() {
className="justify-center flex-col items-start text-base flex"
>
<h6 className="font-extrabold text-lg mb-2">Links</h6>
<MainLinks />
<div className="grid gap-1">
<MainLinks />
</div>
</div>
<div
data-item="social-links"
Expand All @@ -37,7 +39,7 @@ function Footer() {
<h6 className="font-extrabold text-lg mb-2 flex gap-2 items-center">
Check Also <HiExternalLink />
</h6>
<div className="flex-wrap gap-2 items-start text-base flex">
<div className="flex-wrap gap-1 items-start text-base flex">
<AutoBacklinks />
</div>
</div>
Expand Down

0 comments on commit b090361

Please sign in to comment.