Skip to content

Commit

Permalink
Enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
halwan-bot committed Aug 19, 2021
1 parent 2f2ebc0 commit 6bc2492
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 39 deletions.
2 changes: 1 addition & 1 deletion control/content/assets/css/bf_base.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ p {
display: block;
}
label{
color: var(--c-info);
/* color: var(--c-info); */
font-size: .75rem;
}
h4, h5, h6 {
Expand Down
9 changes: 8 additions & 1 deletion control/content/assets/css/sortable.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ html[buildfire] .d-item .btn-edit-icon:hover::after{
}

.carousel-items.draggable-list-view .d-item .media-holder {
background: transparent !important;
background: #eef0f0 !important;
width: 100%;
}

.draggable-list-view .d-item .media-holder {
Expand Down Expand Up @@ -132,4 +133,10 @@ html[buildfire] .d-item .btn-edit-icon:hover::after{

.d-item .copy a.text-primary {
flex-grow: 1 !important;
}

.draggable-list-view.carousel-items .d-item span.title {
width: 50%;
flex-grow: 1;
margin-left: 10px;
}
29 changes: 14 additions & 15 deletions control/content/controllers/content.home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,18 @@
}
var item = ContentHome.items[index];
if ("undefined" !== typeof item) {
Modals.removePopupModal({ title: '', event: $event }).then(function (result) {
if (result) {
buildfire.dialog.confirm(
{
title: "Delete Item",
message: 'Are you sure you want to delete this item?',
isMessageHTML: true,
confirmButton: {
type: "danger",
text: "Delete"
}
},
(err, isConfirmed) => {
if (isConfirmed) {
if (item.data.searchEngineId) {
SearchEngineService.delete(item.data.searchEngineId);
}
Expand All @@ -607,20 +617,9 @@
}, function (err) {
console.error('Error while deleting an item-----', err);
});
}
}
else {
console.info('Unable to load data.');
}
}, function (cancelData) {
//do something on cancel
});
/*$timeout(function () {
var top = $($event.currentTarget).offset().top;
if (top > 100)
top -= 100;
$('.modal-dialog.modal-sm').offset({top: top, left: 0});
}, 500);*/

);
}
};

Expand Down
6 changes: 3 additions & 3 deletions control/settings/assets/css/bf_base.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ p {
display: block;
}
label{
color: var(--c-info);
/* color: var(--c-info); */
font-size: .75rem;
}
h4, h5, h6 {
Expand Down Expand Up @@ -740,7 +740,7 @@ color: var(--c-info);
box-shadow: 0 0 5px rgb(0 0 0 / 30%);
content: "";
height: 24px;
left: -4px;
left: 0;
margin-top: -9px;
position: absolute;
top: -4px;
Expand All @@ -760,7 +760,7 @@ color: var(--c-info);

.button-switch > input[type="checkbox"]:checked + label::after {
background: inherit;
left: 25px;
left: 23px;
}

.button-switch.switch-sm > label::before {
Expand Down
17 changes: 13 additions & 4 deletions control/settings/assets/css/control.settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
.setting-toggle p.setting-label {
width: 250px;
margin: 0;
color: #5f5f5f
}
.setting-toggle button {
padding: 10px;
Expand Down Expand Up @@ -203,6 +204,7 @@
}
.customTooltipBox .customTooltipText {
visibility: hidden;
font-size: 11px;
width: 300px;
background-color: #414547;
color: #fff;
Expand All @@ -228,6 +230,17 @@
border-style: solid;
border-color: #414547 transparent transparent transparent;
}

.customTooltipBox .customTooltipText {
max-width: 220px;
padding: 8px 12px;
color: #fff;
text-align: center;
text-decoration: none;
background-color: #32373a;
border-radius: 4px;
}

.info-row {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -261,8 +274,4 @@

.input-group-addon:hover {
background-color: #3c3c3c !important;
}

.setting-label {
color: var(--c-info);
}
13 changes: 12 additions & 1 deletion control/strings/assets/css/control.strings.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

.customTooltipBox .customTooltipText {
visibility: hidden;
width: 200px;
font-size: 11px;
width: 300px;
background-color: #414547;
color: #fff;
text-align: center;
Expand Down Expand Up @@ -104,6 +105,16 @@
opacity: 0.9;
}

.customTooltipBox .customTooltipText {
max-width: 220px;
padding: 8px 12px;
color: #fff;
text-align: center;
text-decoration: none;
background-color: #32373a;
border-radius: 4px;
}

.subTitle {
margin-bottom: 25px;
font-style: italic;
Expand Down
Empty file removed widget/assets/.images/.nomedia
Empty file.
11 changes: 0 additions & 11 deletions widget/assets/.images/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion widget/assets/css/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ html{
font-size: 16px !important;
}

.slide {
.slide.safe-area {
padding-top: env(safe-area-inset-top) !important;
}

Expand Down
4 changes: 2 additions & 2 deletions widget/assets/css/widget.app.css
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ input[type=range]::-ms-track {
}

.bitmap {
background-image: url('../.images/empty_page.svg');
background-image: url('../images/empty_page.svg');
background-repeat: no-repeat;
background-attachment: absolute;
background-position: center;
Expand Down Expand Up @@ -989,7 +989,7 @@ input[type=range]::-ms-track {
}

#emptyContainer {
background-image: url(../.images/empty_page.svg);
background-image: url('../images/empty_page.svg');
background-repeat: no-repeat;
background-position: center;
height: 80vh;
Expand Down
File renamed without changes
8 changes: 8 additions & 0 deletions widget/controllers/widget.home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
WidgetHome.deepLink = false;
$rootScope.loadingData = true;

const isLauncher = window.location.href.includes('launcherPlugin');
const slideElement = document.querySelector(".slide");
if (isLauncher) {
slideElement.classList.add("safe-area");
} else {
slideElement.classList.remove("safe-area");
}

var _infoData = {
data: {
content: {
Expand Down

0 comments on commit 6bc2492

Please sign in to comment.