Skip to content

Commit

Permalink
Merge pull request #162 from prefeitura-rio/mobile-version
Browse files Browse the repository at this point in the history
chore: saiba mais brake line
  • Loading branch information
lucastavarex authored Jul 26, 2024
2 parents 1b6bce3 + f6621b1 commit d275a43
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ const PlaceDescriptionBar = forwardRef(
const fullText = content?.descricao;

// Calcule o número de caracteres com base na altura da janela
const numChars = Math.floor(windowHeight / (isScreen900 ? 2.5 : (isScreen600 ? 3 : 1.4)));
const numChars = Math.floor(windowHeight / (isScreen900 ? 3 : (isScreen600 ? 3.2 : 1.6)));

const shortText = `${fullText?.substring(0, numChars)} ...`;
const [loading, setLoading] = useState(false);
Expand Down Expand Up @@ -618,6 +618,7 @@ const PlaceDescriptionBar = forwardRef(
{content?.descricao && (isTextExpanded ? 'Leia menos' : 'Leia mais')}
</Button>
)}
<br></br>
<Typography
component="span"
style={{ cursor: 'pointer', textDecoration: 'underline', color: '#007bff', marginLeft: '8px' }}
Expand Down Expand Up @@ -743,7 +744,7 @@ const PlaceDescriptionBar = forwardRef(
<Button onClick={() => setTextExpanded(!isTextExpanded)}>
{content?.descricao && (isTextExpanded ? 'Leia menos' : 'Leia mais')}
</Button>
)}
)}<br></br>
<Typography
component="span"
style={{ cursor: 'pointer', textDecoration: 'underline', color: '#007bff', marginLeft: '8px' }}
Expand Down

0 comments on commit d275a43

Please sign in to comment.