From 9312141df58d1a00a97d6ff6ebed620c0e35f577 Mon Sep 17 00:00:00 2001 From: Hunter Yihan Jiang Date: Tue, 26 Sep 2023 14:41:20 -0500 Subject: [PATCH 1/2] First commit: align to the left --- src/screens/EPub/views/EditINote/INoteEditor/index.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/EPub/views/EditINote/INoteEditor/index.scss b/src/screens/EPub/views/EditINote/INoteEditor/index.scss index 579b22fa3..5dc12842b 100644 --- a/src/screens/EPub/views/EditINote/INoteEditor/index.scss +++ b/src/screens/EPub/views/EditINote/INoteEditor/index.scss @@ -44,7 +44,7 @@ transition: opacity .2s ease-in; pointer-events: auto; border-radius: 0 20px 20px 0; - padding-left: 20px; + padding-left: 0px; background-color: rgb(245, 245, 245); } .item-actions:hover { From 67c967b3dbafcc6d4f5a01eb3373ccecb46a15af Mon Sep 17 00:00:00 2001 From: Hunter Yihan Jiang Date: Tue, 26 Sep 2023 19:29:36 -0500 Subject: [PATCH 2/2] Finished editing the alignment and resizing --- .../views/EditINote/INoteEditor/index.scss | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/screens/EPub/views/EditINote/INoteEditor/index.scss b/src/screens/EPub/views/EditINote/INoteEditor/index.scss index 5dc12842b..b300039e0 100644 --- a/src/screens/EPub/views/EditINote/INoteEditor/index.scss +++ b/src/screens/EPub/views/EditINote/INoteEditor/index.scss @@ -2,9 +2,13 @@ // INoteChapter .ct-epb.ch-img-con { position: relative; - width: 100%; + width: 98%; + height: 98%; + margin-left: 3px; + padding-top: 3px; flex: 0 0 auto; - padding-bottom: 20px; + padding-bottom: 5px; + margin-top: 10px; border-top: solid 1px rgb(236, 236, 236); .ch-img-wrapper{ position: relative; @@ -28,9 +32,11 @@ .item-text { position: relative; + width: 99%; white-space: pre-wrap; - padding-left: 10px; - padding-top: 10px; + margin-left: 3px; + padding-top: 3px; + margin-bottom: 3px; font-size: 14px; line-height: 23px; // height: 92px; @@ -39,13 +45,17 @@ .item-actions { + display: flex; + justify-content: flex-start; + gap: 50px; width: 100%; opacity: 0; transition: opacity .2s ease-in; pointer-events: auto; - border-radius: 0 20px 20px 0; - padding-left: 0px; + border-radius: 10px 20px 20px 10px; background-color: rgb(245, 245, 245); + margin-bottom: 5px; + margin-top: 5px; } .item-actions:hover { opacity: 1;