Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown render idea working #1713

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Erichseen
Copy link
Contributor

No description provided.

@Erichseen Erichseen linked an issue Feb 26, 2025 that may be closed by this pull request
@Erichseen Erichseen marked this pull request as ready for review March 6, 2025 20:04
Copy link
Contributor

@Mathias-a Mathias-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er egt good, tror jeg, men vi kan se på kommentarer

Comment on lines +90 to +91
field.onBlur(); // Call the default onBlur handler from react-hook-form
handleNotesChange(newNotes.target.value); // Call your custom function on blur
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette er nok ikke helt din skyld, men tror jeg hadde foretrukket (om mulig) at vi ikke forholdt oss til "newNotes", men heller bare forholdt oss til verdien til feltet i formet. Vet ikke om det funker med conditional rendering?

Copy link
Contributor

@Mathias-a Mathias-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntes dette er drit bra, sikkert like god / bedre kvalitet enn store deler av kodebasen

Comment on lines +2 to +5
.markdownBox {
min-height: 550px;
max-height: 550px; /* Add max-height to enable scrolling */
margin: 10px;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nå har jeg ikke sett så nøye på dette, men dette kan nok løses med padding og/eller gap. Tror det er en bedre løsning. Forklaring på hvorfor jeg foretrekker det finner du her

https://dev.to/moruno21/dont-use-margin-in-css-33f9

Comment on lines +21 to +23
.markdownBox {
cursor: pointer; /* Add cursor pointer to indicate it's clickable */
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette er vel ikke nødvendig nå som det er en button?

Comment on lines +33 to +34
width: 100%;
box-sizing: border-box;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeg tror box-sizing: border-box er default i hele prosjektet, så det skal nok ikke ha noe å si her. Må innrømme at jeg ikke er 100% sikker, så ville testa det ut 😅

Comment on lines +11 to +13
color: #333333;
background-color: #ffffff;
border: 1px solid #cccccc;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vi pleier å prøve å bruke farger fra 'constants' filen. Bare så fargene skal være konsekvente. Det gjør du ved å skrive:

// øvers i filen
@import 'src/constants'

//bruk av farger, f. eks.
color: $grey;

Se i "constants.scss" filen for å se alle fargene

Comment on lines +6 to +7
font-size: 16px;
line-height: 1.5;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er dette forskjellig fra default?

Comment on lines +9 to +10
display: block;
font-family: inherit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er ikke begge disse default?

Comment on lines +15 to +16
resize: vertical;
box-sizing: border-box;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mulig box-sizing er default i prosjektet (Er ikke det generelt i css, men burde vært det). Da trenger du ikke definere det på nytt her

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement markdown support on interview notes
2 participants