Skip to content

Commit

Permalink
fix: botão "atualizar" de atualizar abrigo aparece cortado para fora …
Browse files Browse the repository at this point in the history
…da tela - mobile
  • Loading branch information
felipemrvieira authored Jun 2, 2024
1 parent 6af7dd7 commit 37cc2ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import ReactDOM from "react-dom/client";
import { App } from "./App.tsx";
import "./global.css";
import ReactDOM from 'react-dom/client';
import { App } from './App.tsx';
import './global.css';

ReactDOM.createRoot(document.getElementById("root")!).render(<App />);
document.documentElement.style.setProperty(
'--vh',
`${window.innerHeight * 0.01}px`
);

ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
2 changes: 1 addition & 1 deletion src/pages/UpdateShelter/UpdateShelter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const UpdateShelter = () => {
if (loading) return <LoadingScreen />;

return (
<div className="flex flex-col h-screen items-center">
<div className="flex flex-col items-center h-[calc(var(--vh,1vh)*100)] md:h-screen">
<Header
title="Atualização cadastral"
className="bg-white [&_*]:text-zinc-800 border-b-[1px] border-b-border"
Expand Down

0 comments on commit 37cc2ec

Please sign in to comment.