Skip to content

Commit d2f0248

Browse files
Fixed cancelled task notification styling
1 parent e3db8b2 commit d2f0248

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

cps/templates/tasks.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,19 @@ <h3>{{ _('Upcoming scheduled operations') }}</h3>
118118
'z-index': '9999',
119119
'min-width': '300px',
120120
'max-width': '500px',
121-
'box-shadow': '0 4px 8px rgba(0,0,0,0.2)'
121+
'max-height': '200px',
122+
'overflow': 'auto',
123+
'padding': '15px',
124+
'margin-bottom': '20px',
125+
'border': '1px solid transparent',
126+
'border-radius': '4px',
127+
'box-shadow': '0 4px 8px rgba(0,0,0,0.2)',
128+
'background-color': type === 'success' ? '#dff0d8' : type === 'danger' ? '#f2dede' : type === 'warning' ? '#fcf8e3' : '#d9edf7',
129+
'border-color': type === 'success' ? '#d6e9c6' : type === 'danger' ? '#ebccd1' : type === 'warning' ? '#faebcc' : '#bce8f1',
130+
'color': type === 'success' ? '#3c763d' : type === 'danger' ? '#a94442' : type === 'warning' ? '#8a6d3b' : '#31708f'
122131
})
123132
.html(`
124-
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
133+
<button type="button" class="close" data-dismiss="alert" aria-label="Close" style="position: relative; top: -2px; right: -21px; color: inherit; opacity: 0.5;">
125134
<span aria-hidden="true">&times;</span>
126135
</button>
127136
${message}

0 commit comments

Comments
 (0)