Fixed bug with library card aspect ratio
This commit is contained in:
parent
8fc5d2c53d
commit
803b7ec730
6
TODO.md
6
TODO.md
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
## Short term
|
## Short term
|
||||||
|
|
||||||
- [Bugs] [Safari] Aspect ratio broken for home IPs card
|
- [Feat] 404, 500 pages
|
||||||
- [Bugs] [iOS] Notch area is light mode color
|
- [Bugs] [iOS] Notch area is light mode color
|
||||||
- [Bugs] [iOS] Multi-parent page button is blue
|
- [Bugs] [iOS] Multi-parent page button is blue
|
||||||
- [Bugs] [iOS] Video doesn't seem to start
|
- [Bugs] [iOS] Video doesn't seem to start
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
## Mid term
|
## Mid term
|
||||||
|
|
||||||
|
- [Feat] [Payload] Home as parent folders for home folders
|
||||||
- [Feat] Change icons to filled one
|
- [Feat] Change icons to filled one
|
||||||
- [Bugs] [Timeline] Error if collectible not published?
|
- [Bugs] [Timeline] Error if collectible not published?
|
||||||
- [Feat] [Timeline] display source language
|
- [Feat] [Timeline] display source language
|
||||||
|
@ -61,6 +62,9 @@
|
||||||
- [Feat] [Images] add images group (which could be named or not)
|
- [Feat] [Images] add images group (which could be named or not)
|
||||||
- [Feat] [Recorders] add list of contributions on recorders' pages
|
- [Feat] [Recorders] add list of contributions on recorders' pages
|
||||||
- [Feat] Detect unused wording keys
|
- [Feat] Detect unused wording keys
|
||||||
|
- [Feat] Replace tippy with native tooltip
|
||||||
|
- https://caniuse.com/css-anchor-positioning
|
||||||
|
- https://caniuse.com/mdn-api_htmlelement_popover
|
||||||
|
|
||||||
## Bonus
|
## Bonus
|
||||||
|
|
||||||
|
|
|
@ -41,9 +41,7 @@ const { img, name, href } = Astro.props;
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<p class="font-l">{name}</p>
|
||||||
<p>{name}</p>
|
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</a>
|
</a>
|
||||||
|
@ -54,19 +52,8 @@ const { img, name, href } = Astro.props;
|
||||||
a {
|
a {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|
||||||
padding: 10%;
|
|
||||||
|
|
||||||
@media (max-width: 40rem) {
|
|
||||||
padding: 5%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 22rem) {
|
|
||||||
padding: 10%;
|
|
||||||
}
|
|
||||||
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -74,15 +61,18 @@ const { img, name, href } = Astro.props;
|
||||||
|
|
||||||
& > img {
|
& > img {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
height: 70%;
|
||||||
|
width: 80%;
|
||||||
|
|
||||||
|
@media (min-width: 22rem) and (max-width: 40rem) {
|
||||||
|
height: 80%;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
& > p {
|
||||||
display: grid;
|
overflow-wrap: normal;
|
||||||
place-content: center;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -6,7 +6,7 @@ interface Props {
|
||||||
href: string;
|
href: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { icon = "material-symbols:folder-outline", title, href } = Astro.props;
|
const { icon = "material-symbols:folder", title, href } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
{/* ------------------------------------------- HTML ------------------------------------------- */}
|
{/* ------------------------------------------- HTML ------------------------------------------- */}
|
||||||
|
|
Loading…
Reference in New Issue