diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-04-28 14:53:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 14:53:43 +0200 |
commit | b15fe00f7409b27573e162192530bc73e3f918b1 (patch) | |
tree | a71df67cee37a60f4de573ca9347aa3262cd8463 /client/src/app/+my-account | |
parent | 4682468d4d07e0864155dd2b403d93754786ea13 (diff) | |
download | PeerTube-b15fe00f7409b27573e162192530bc73e3f918b1.tar.gz PeerTube-b15fe00f7409b27573e162192530bc73e3f918b1.tar.zst PeerTube-b15fe00f7409b27573e162192530bc73e3f918b1.zip |
Add maximized mode to markdown-textarea + CSS improvements (#2660)
* Add arrows-angle-contract/expand bootstrap icons
* Add grey textarea-background-color
* Add maximized support to markdown-textarea + improve column display
* Refactor CSS + add ResizeObservable
* Replace bootstrap icons with softies
* Add ResizeObserver typing definition
* Add focus on textarea + Fix Observables
* Propage component changes on markdown plugins
* Ignore ResizeObserver not implemented in typescript yet
* Move observers from constructor to click event
* Add scss and css variables
* Replace textareaWidth with textareaMaxWidth to fix others textareas
* Clean unused css rules
* Fix ResizeObserver unknown by TypeScript compiler
* Set max-width: 100% for small and mobile views
* Fix textarea/preview height on maximized mode
* Add common padding textarea/preview side-by-side
* Hide scrollbar sub-menu on small-views
* Add maximized mode for mobile views
* Fix sass calculate syntax
* Revert custom CSS variable for inputBorderRadius and inputBorderColor
* Remove unsued methods
* Fix missing implement method
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/app/+my-account')
2 files changed, 4 insertions, 12 deletions
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html index 59ac5097b..048d143cd 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.html | |||
@@ -59,7 +59,7 @@ | |||
59 | {{ formErrors['display-name'] }} | 59 | {{ formErrors['display-name'] }} |
60 | </div> | 60 | </div> |
61 | </div> | 61 | </div> |
62 | 62 | ||
63 | <div class="form-group"> | 63 | <div class="form-group"> |
64 | <label i18n for="description">Description</label> | 64 | <label i18n for="description">Description</label> |
65 | <textarea | 65 | <textarea |
@@ -70,7 +70,7 @@ | |||
70 | {{ formErrors.description }} | 70 | {{ formErrors.description }} |
71 | </div> | 71 | </div> |
72 | </div> | 72 | </div> |
73 | 73 | ||
74 | <div class="form-group"> | 74 | <div class="form-group"> |
75 | <label for="support">Support</label> | 75 | <label for="support">Support</label> |
76 | <my-help | 76 | <my-help |
@@ -78,14 +78,14 @@ | |||
78 | When you will upload a video in this channel, the video support field will be automatically filled by this text." | 78 | When you will upload a video in this channel, the video support field will be automatically filled by this text." |
79 | ></my-help> | 79 | ></my-help> |
80 | <my-markdown-textarea | 80 | <my-markdown-textarea |
81 | id="support" formControlName="support" textareaWidth="500px" [previewColumn]="true" markdownType="enhanced" | 81 | id="support" formControlName="support" textareaMaxWidth="500px" markdownType="enhanced" |
82 | [classes]="{ 'input-error': formErrors['support'] }" | 82 | [classes]="{ 'input-error': formErrors['support'] }" |
83 | ></my-markdown-textarea> | 83 | ></my-markdown-textarea> |
84 | <div *ngIf="formErrors.support" class="form-error"> | 84 | <div *ngIf="formErrors.support" class="form-error"> |
85 | {{ formErrors.support }} | 85 | {{ formErrors.support }} |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
88 | 88 | ||
89 | <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()"> | 89 | <div class="form-group" *ngIf="isBulkUpdateVideosDisplayed()"> |
90 | <my-peertube-checkbox | 90 | <my-peertube-checkbox |
91 | inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate" | 91 | inputName="bulkVideosSupportUpdate" formControlName="bulkVideosSupportUpdate" |
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss index 43a49a01a..8f8af655c 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss | |||
@@ -48,14 +48,6 @@ textarea { | |||
48 | display: block; | 48 | display: block; |
49 | } | 49 | } |
50 | 50 | ||
51 | my-markdown-textarea ::ng-deep { | ||
52 | .root { | ||
53 | @media screen and (max-width: 1400px) { | ||
54 | flex-direction: column !important; | ||
55 | } | ||
56 | } | ||
57 | } | ||
58 | |||
59 | .peertube-select-container { | 51 | .peertube-select-container { |
60 | @include peertube-select-container(340px); | 52 | @include peertube-select-container(340px); |
61 | } | 53 | } |