mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-05 22:47:21 +08:00
fix(image): limit the max width of the image on browser mode
This commit is contained in:
@@ -58,7 +58,7 @@ const getAddressInput = (
|
||||
<style jsx>{`
|
||||
.address-input {
|
||||
height: 1.75rem;
|
||||
max-width: 55%;
|
||||
max-width: 60%;
|
||||
min-width: 40%;
|
||||
background-color: ${colors.inputBgColor};
|
||||
color: inherit;
|
||||
@@ -127,6 +127,7 @@ const ImageBrowser: React.FC<React.PropsWithChildren<ImageBrowserProps>> = ({
|
||||
background-color: transparent;
|
||||
box-shadow: ${theme.expressiveness.shadowLarge};
|
||||
width: max-content;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
border-radius: ${theme.layout.radius};
|
||||
overflow: hidden;
|
||||
|
||||
Reference in New Issue
Block a user