Skip to content

Commit

Permalink
feat: Improve note editor display - EXO-73698 - Meeds-io/MIPs#161 (#1192
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sofyenne authored and hakermi committed Nov 28, 2024
1 parent 2164ceb commit c124f97
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 29 deletions.
42 changes: 37 additions & 5 deletions notes-webapp/src/main/webapp/skin/less/notes/notes.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,24 @@
font-size: 22px;
}
}

.notes-editor-body-section {
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
.notes-editor-body-section-content {
width: @pageWidth;
max-width: 100%;
box-sizing: border-box;
padding-top: var(--sectionMarginTop, 10px);
padding-bottom: var(--sectionMarginBottom, 10px);
padding-left: 20px;
padding-right: 20px;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
}
}
#notesEditor {
position: fixed;
height: 100%;
Expand All @@ -73,6 +90,16 @@

.notes-content-form {
min-height: calc(~"100vh - 140px");
.formInputGroup {
&:first-of-type {
border-top-right-radius: ~"var(--appBorderRadiusTopRight, var(--allPagesBorderRadius, 4px)) !important";
border-top-left-radius: ~"var(--appBorderRadiusTopLeft, var(--allPagesBorderRadius, 4px)) !important";
}
&:last-of-type {
border-bottom-right-radius: ~"var(--appBorderRadiusTopRight, var(--allPagesBorderRadius, 4px)) !important";
border-bottom-left-radius: ~"var(--appBorderRadiusTopLeft, var(--allPagesBorderRadius, 4px)) !important";
}
}
.notes-content-wrapper > div[role="application"] {
border-color: transparent;
flex: 0 1 100%;
Expand All @@ -82,11 +109,9 @@
.notesTitle {
#notesTitle {
width: 100%;
box-sizing: border-box;
font-size: 21px;
font-weight: bold;
font-size: 34px !important;
letter-spacing: 0.3px;
border-bottom: solid 1px @greyColor !important;

&:focus {
box-shadow: none !important;
}
Expand Down Expand Up @@ -204,6 +229,13 @@
}
}

.notesContent {
margin-top: 32px !important;
margin-right: 0px !important;
margin-left: 0px !important;
margin-bottom: 0px !important;
}

#notesOverviewApplication {

.notes-application-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,36 @@
@editor-closed="editorClosed"
@post-note="postNote"
@open-metadata-drawer="openMetadataDrawer" />
<form class="notes-content">
<div class="notes-content-form singlePageApplication my-5 mx-auto py-1 px-5">
<div
v-show="!webPageNote"
class="formInputGroup notesTitle white px-5">
<input
id="notesTitle"
:ref="editorTitleInputRef"
v-model="noteObject.title"
:placeholder="titlePlaceholder"
type="text"
:maxlength="noteTitleMaxLength + 1"
class="py-0 px-1 mt-5 mb-0"
@input="waitUserTyping()">
</div>
<div class="formInputGroup white overflow-auto flex notes-content-wrapper">
<textarea
:id="editorBodyInputRef"
:ref="editorBodyInputRef"
:placeholder="bodyPlaceholder"
:name="editorBodyInputRef"
class="notesFormInput">
<div class="notes-editor-body-section">
<div class="notes-editor-body-section-content">
<form class="notes-content">
<div class="notes-content-form">
<div
v-show="!webPageNote"
class="formInputGroup title notesTitle white px-5 pt-5 ">
<input
id="notesTitle"
:ref="editorTitleInputRef"
v-model="noteObject.title"
:placeholder="titlePlaceholder"
type="text"
:maxlength="noteTitleMaxLength + 1"
class="title text-color ma-0 pa-0"
@input="waitUserTyping()">
</div>
<div class="formInputGroup white overflow-auto flex notes-content-wrapper px-5 pb-5">
<textarea
:id="editorBodyInputRef"
:ref="editorBodyInputRef"
:placeholder="bodyPlaceholder"
:name="editorBodyInputRef"
class="notesFormInput">
</textarea>
</div>
</div>
</div>
</form>
</div>
</form>
</div>
<extension-registry-components
v-if="editorExtensions.length > 0"
name="NotesRichEditor"
Expand Down

0 comments on commit c124f97

Please sign in to comment.