fix: entry thumbnail keep origin aspect ratio
Signed-off-by: Innei <i@innei.in>
This commit is contained in:
parent
87717d6426
commit
6e04e6eacd
|
|
@ -206,7 +206,7 @@ export function ListItem({
|
|||
loading="lazy"
|
||||
proxy={{
|
||||
width: 160,
|
||||
height: 160,
|
||||
height: 0,
|
||||
}}
|
||||
height={entry.entries.media[0].height}
|
||||
width={entry.entries.media[0].width}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ export const circularImportRefreshPlugin = (): Plugin => ({
|
|||
name: "circular-import-refresh",
|
||||
handleHotUpdate({ file, server }: HmrContext) {
|
||||
const mod = server.moduleGraph.getModuleById(file)
|
||||
|
||||
// Check for circular imports
|
||||
if (mod && isNodeWithinCircularImports(mod, [mod])) {
|
||||
console.error(
|
||||
red(
|
||||
|
|
@ -56,5 +58,11 @@ export const circularImportRefreshPlugin = (): Plugin => ({
|
|||
server.ws.send({ type: "full-reload" })
|
||||
return []
|
||||
}
|
||||
|
||||
if (file.startsWith(path.resolve(process.cwd(), "src/store")) && file.endsWith(".ts")) {
|
||||
console.warn(yellow(`[memory-hmr] Detected change in store file: ${file}. Reloading page.`))
|
||||
server.ws.send({ type: "full-reload" })
|
||||
return []
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue