mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
(possibly) fix log width issue
This commit is contained in:
parent
30fda91bc8
commit
6d06b9809d
2 changed files with 3 additions and 4 deletions
|
|
@ -86,10 +86,8 @@ class Logo(HyperglassModel):
|
|||
light: FilePath = DEFAULT_IMAGES / "hyperglass-light.svg"
|
||||
dark: FilePath = DEFAULT_IMAGES / "hyperglass-dark.svg"
|
||||
favicon: FilePath = DEFAULT_IMAGES / "hyperglass-icon.svg"
|
||||
width: str = Field(default="100%", pattern=PERCENTAGE_PATTERN)
|
||||
# width: t.Optional[t.Union[int, Percentage]] = "100%"
|
||||
width: str = Field(default="50%", pattern=PERCENTAGE_PATTERN)
|
||||
height: t.Optional[str] = Field(default=None, pattern=PERCENTAGE_PATTERN)
|
||||
# height: t.Optional[t.Union[int, Percentage]] = None
|
||||
|
||||
|
||||
class LogoPublic(Logo):
|
||||
|
|
|
|||
|
|
@ -41,7 +41,8 @@ export const Logo = (props: ImageProps): JSX.Element => {
|
|||
src={source}
|
||||
alt={web.text.title}
|
||||
onError={setFallback}
|
||||
width={width ?? 'auto'}
|
||||
maxW={{ base: '100%', md: width }}
|
||||
width="auto"
|
||||
css={{
|
||||
userDrag: 'none',
|
||||
userSelect: 'none',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue