'type' => Hidden::class,
'read_only' => true,
'column' => true,
- 'column_type' => 'textwrap',
- 'column_view_namespace' => CubistBackpackServiceProvider::NAMESPACE . '::columns',
+ 'column_type' => 'model_function',
+ 'column_function_name' => 'getTitleForColumn',
'column_move_after' => 'id',
'column_limit' => 150,
+ 'column_escape' => false,
],
'c_pages' => [
'label' => __('Pages'),
return true;
}
+ public function getTitleForColumn()
+ {
+ $more = '';
+ if ($this->mobileNavigationType === 'mobilefirst') {
+ $more .= ' <i class="fluidbook-title-icon las la-mobile"></i>';
+ }
+ return '<span style="white-space: normal;">' . e($this->c_title) . $more . '</span>';
+ }
+
public function allowsDownload()
{
if ($this->id < WorkshopMigration::WS3_BOOK_ID) {
}
table.dataTable thead .sorting::before, table.dataTable thead .sorting::after, table.dataTable thead .sorting_asc::before, table.dataTable thead .sorting_asc::after, table.dataTable thead .sorting_desc::before, table.dataTable thead .sorting_desc::after, table.dataTabl
+
+.fluidbook-title-icon{
+ font-size: 120%;
+}
loadPage: function (p, side) {
var container = $("#linkeditor-page-" + side);
$(container).attr('data-page', p);
- if (this.linkeditor.utils.isSpecialPage(p)) {
- var dim = this.linkeditor.utils.getPageDimensions(p);
- $("#linkeditor-fluidbook").css({width: dim[0], height: dim[1]});
- $(container).css({width: dim[0], height: dim[1]});
- } else if (this.linkeditor.mobileFirst) {
- let h = this.linkeditor.utils.getPageDimensions(p)[1];
- $("#linkeditor-fluidbook").css('height', h);
- $(container).css('height', h);
- }
if (p === 0 || p > FLUIDBOOK_DATA.settings.pages) {
$(container).html('');
this._loadPage(p, container);
}
+ this.linkeditor.resize.resizePages();
+
this.linkeditor.links.loadLinks(p, side);
this.linkeditor.rulers.loadRulers(p, side);
},
$("#linkeditor").addClass('double').removeClass('single');
}
- if (special) {
- var dim = this.linkeditor.utils.getPageDimensions();
- $('.linkeditor-page,#linkeditor-fluidbook').css({
- width: dim[0], height: dim[1]
- });
- } else {
- $('.linkeditor-page').css({
- width: this.linkeditor.pw, height: this.linkeditor.ph
- });
-
- $("#linkeditor-page-right").css({left: this.linkeditor.pw})
- $('#linkeditor-fluidbook').css({
- width: this.linkeditor.fw, height: this.linkeditor.ph
- });
- }
-
+ this.resizePages();
this.updateWindowDimensions();
this.resizeMain();
this.resizeCanvas();
}
},
+ resizePages: function () {
+ let $this = this;
+ let dimCover = $this.linkeditor.utils.getPageDimensions(1);
+
+ $(".linkeditor-page[data-page]").each(function () {
+ let p = $(this).attr('data-page');
+ let dim = $this.linkeditor.utils.getPageDimensions(p);
+ let pw = dim[0];
+ let ph = dim[1];
+ if ($this.linkeditor.utils.isSpecialPage(p)) {
+
+ } else if ($this.linkeditor.mobileFirst) {
+ pw = dimCover[0];
+ } else {
+ pw = dimCover[0];
+ ph = dimCover[1];
+ }
+ $("#linkeditor-fluidbook").css({width: pw, height: ph});
+ $(this).css({width: pw, height: ph});
+ });
+
+ },
+
resizeMain: function () {
$("#linkeditor-main").css('width', this.ww - $('#linkeditor-left').outerWidth() - $('#linkeditor-right').outerWidth());
},
} else {
return THEME[page]['dim'];
}
+ } else {
+ page = parseInt(page);
}
return FLUIDBOOK_DATA.page_dimensions[page];
},