|
29 | 29 | [class.dot-edit-content-tabview--single-tab]="$hasSingleTab()" |
30 | 30 | (onChange)="onActiveIndexChange($event)" |
31 | 31 | [activeIndex]="activeIndex" |
| 32 | + scrollable="false" |
32 | 33 | class="dot-edit-content-tabview"> |
33 | 34 | <!-- Add prepend and append areas to the tabs --> |
34 | 35 | <ng-template |
|
94 | 95 | <!-- Append template to add to the tabs --> |
95 | 96 | <ng-template #appendContent> |
96 | 97 | <div |
97 | | - class="dot-edit-content-actions" |
| 98 | + class="dot-edit-content-actions flex align-items-center w-full" |
98 | 99 | data-testId="edit-content-actions" |
99 | 100 | [class.dot-edit-content-actions--sidebar-open]="showSidebar"> |
100 | | - <!-- Add Content Lock Toggle here --> |
101 | | - <div |
102 | | - class="dot-edit-content-actions__lock flex align-items-center gap-2" |
103 | | - [class.locked]="isContentLocked"> |
| 101 | + <!-- Left group for lock controls --> |
| 102 | + <div class="dot-edit-content-actions__left flex align-items-center"> |
104 | 103 | @if (canLock) { |
105 | | - <p-inputSwitch |
106 | | - [ngModel]="isContentLocked" |
107 | | - [disabled]="!canLock" |
108 | | - (onChange)="onContentLockChange($event)" |
109 | | - inputId="lockSwitch" |
110 | | - data-testId="content-lock-switch"></p-inputSwitch> |
111 | | - <label for="lockSwitch" class="text-sm">{{ lockSwitchLabel | dm }}</label> |
| 104 | + <div |
| 105 | + class="dot-edit-content-actions__lock flex align-items-center gap-2" |
| 106 | + [class.locked]="isContentLocked"> |
| 107 | + <p-inputSwitch |
| 108 | + [ngModel]="isContentLocked" |
| 109 | + [disabled]="!canLock" |
| 110 | + (onChange)="onContentLockChange($event)" |
| 111 | + inputId="lockSwitch" |
| 112 | + data-testId="content-lock-switch"></p-inputSwitch> |
| 113 | + <label for="lockSwitch" class="text-sm">{{ lockSwitchLabel | dm }}</label> |
| 114 | + </div> |
112 | 115 | } |
113 | 116 | </div> |
114 | 117 |
|
115 | | - @if ($showPreviewLink()) { |
116 | | - <button |
117 | | - pButton |
118 | | - icon="pi pi-external-link" |
119 | | - class="p-button-link p-button-md" |
120 | | - data-testId="preview-button" |
121 | | - (click)="showPreview()"> |
122 | | - {{ 'edit.content.preview-link' | dm }} |
123 | | - </button> |
124 | | - } |
| 118 | + <!-- Right group for all other actions --> |
| 119 | + <div class="dot-edit-content-actions__right flex align-items-center"> |
| 120 | + @if ($showPreviewLink()) { |
| 121 | + <button |
| 122 | + pButton |
| 123 | + icon="pi pi-external-link" |
| 124 | + class="p-button-link p-button-md" |
| 125 | + data-testId="preview-button" |
| 126 | + (click)="showPreview()"> |
| 127 | + {{ 'edit.content.preview-link' | dm }} |
| 128 | + </button> |
| 129 | + } |
125 | 130 |
|
126 | | - @if (showWorkflowActions) { |
127 | | - <dot-workflow-actions |
128 | | - data-testId="workflow-actions" |
129 | | - (actionFired)=" |
130 | | - fireWorkflowAction({ |
131 | | - workflow: $event, |
132 | | - inode: contentlet?.inode, |
133 | | - contentType: contentType.variable, |
134 | | - languageId: currentLocaleId, |
135 | | - identifier: currentIdentifier |
136 | | - }) |
137 | | - " |
138 | | - [actions]="actions" |
139 | | - [groupActions]="true" /> |
140 | | - } |
| 131 | + @if (showWorkflowActions) { |
| 132 | + <dot-workflow-actions |
| 133 | + data-testId="workflow-actions" |
| 134 | + (actionFired)=" |
| 135 | + fireWorkflowAction({ |
| 136 | + workflow: $event, |
| 137 | + inode: contentlet?.inode, |
| 138 | + contentType: contentType.variable, |
| 139 | + languageId: currentLocaleId, |
| 140 | + identifier: currentIdentifier |
| 141 | + }) |
| 142 | + " |
| 143 | + [actions]="actions" |
| 144 | + [groupActions]="true" /> |
| 145 | + } |
141 | 146 |
|
142 | | - <div |
143 | | - class="dot-edit-content-actions__sidebar-toggle" |
144 | | - data-testId="sidebar-toggle" |
145 | | - [class.dot-edit-content-actions__sidebar-toggle--hidden]="showSidebar"> |
146 | | - <button |
147 | | - class="dot-edit-content-actions__sidebar-btn p-button p-button-sm p-button-text p-button-rounded p-button-icon-only" |
148 | | - (click)="$store.toggleSidebar()" |
149 | | - data-testId="sidebar-toggle-button"> |
150 | | - <svg |
151 | | - width="20" |
152 | | - height="20" |
153 | | - viewBox="0 0 20 20" |
154 | | - fill="none" |
155 | | - xmlns="http://www.w3.org/2000/svg"> |
156 | | - <rect |
157 | | - x="2.70588" |
158 | | - y="3.17659" |
159 | | - width="14.5882" |
160 | | - height="13.6471" |
161 | | - rx="1.17647" |
162 | | - stroke="#426BF0" |
163 | | - stroke-width="1.41176" /> |
164 | | - <line |
165 | | - x1="12.3528" |
166 | | - y1="16.1223" |
167 | | - x2="12.3528" |
168 | | - y2="3.87797" |
169 | | - stroke="#426BF0" |
170 | | - stroke-width="1.88235" /> |
171 | | - </svg> |
172 | | - </button> |
| 147 | + <div |
| 148 | + class="dot-edit-content-actions__sidebar-toggle flex align-items-center" |
| 149 | + data-testId="sidebar-toggle" |
| 150 | + [class.dot-edit-content-actions__sidebar-toggle--hidden]="showSidebar"> |
| 151 | + <button |
| 152 | + class="dot-edit-content-actions__sidebar-btn p-button p-button-sm p-button-text p-button-rounded p-button-icon-only" |
| 153 | + (click)="$store.toggleSidebar()" |
| 154 | + data-testId="sidebar-toggle-button"> |
| 155 | + <svg |
| 156 | + width="20" |
| 157 | + height="20" |
| 158 | + viewBox="0 0 20 20" |
| 159 | + fill="none" |
| 160 | + xmlns="http://www.w3.org/2000/svg"> |
| 161 | + <rect |
| 162 | + x="2.70588" |
| 163 | + y="3.17659" |
| 164 | + width="14.5882" |
| 165 | + height="13.6471" |
| 166 | + rx="1.17647" |
| 167 | + stroke="#426BF0" |
| 168 | + stroke-width="1.41176" /> |
| 169 | + <line |
| 170 | + x1="12.3528" |
| 171 | + y1="16.1223" |
| 172 | + x2="12.3528" |
| 173 | + y2="3.87797" |
| 174 | + stroke="#426BF0" |
| 175 | + stroke-width="1.88235" /> |
| 176 | + </svg> |
| 177 | + </button> |
| 178 | + </div> |
173 | 179 | </div> |
174 | 180 | </div> |
175 | 181 | </ng-template> |
0 commit comments