Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
Mobile UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Oct 25, 2018
1 parent 921e324 commit 4522d38
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Assets/dist/js/cms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Assets/src/js/forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var _redactorConfig = {
toolbarFixedTopOffset: 60,
toolbarFixedTopOffset: ($(window).width() < 376) ? 30 : 50,
visual: true,
minHeight: 175,
convertVideoLinks: true,
Expand Down
2 changes: 1 addition & 1 deletion src/Views/modules/blogs/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@include('cms::modules.blogs.breadcrumbs', ['location' => ['edit']])
</div>
<div class="col-md-6">
<div class="btn-toolbar float-right mt-2">
<div class="btn-toolbar float-right mt-2 mb-4">
@if (! cms()->isDefaultLanguage() && $blog->translationData(request('lang')))
@if (isset($blog->translationData(request('lang'))->is_published))
<a class="btn btn-success ml-1" href="{!! url('blog/'.$blog->translationData(request('lang'))->url) !!}">Live</a>
Expand Down
2 changes: 1 addition & 1 deletion src/Views/modules/events/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@include('cms::modules.events.breadcrumbs', ['location' => ['edit']])
</div>
<div class="col-md-6">
<div class="btn-toolbar float-right mt-2">
<div class="btn-toolbar float-right mt-2 mb-4">
@if (! cms()->isDefaultLanguage() && $event->translationData(request('lang')))
@if (isset($event->translationData(request('lang'))->is_published))
<a class="btn btn-success ml-1" href="{!! url('events/event/'.$event->id) !!}">Live</a>
Expand Down
4 changes: 2 additions & 2 deletions src/Views/modules/files/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<table class="table table-striped">
<thead>
<th>{!! sortable('Name', 'name') !!}</th>
<th>{!! sortable('Is Published', 'is_published') !!}</th>
<th class="m-hidden">{!! sortable('Is Published', 'is_published') !!}</th>
<th width="170px" class="text-right">Actions</th>
</thead>
<tbody>
Expand All @@ -44,7 +44,7 @@
<a href="{!! Cms::fileAsDownload($file->name, $file->location) !!}"><span class="fa fa-download"></span></a>
<a href="{!! route(cms()->route('files.edit'), [$file->id]) !!}">{!! $file->name !!}</a>
</td>
<td class="raw-m-hide">
<td class="m-hidden">
@if ($file->is_published)
<span class="fa fa-check"></span>
@else
Expand Down
4 changes: 2 additions & 2 deletions src/Views/modules/images/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@
</div>
<div data-id="{{ $image->id }}" class="well pull-down overflow-hidden selectable">
<div class="row">
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="col-6">
@if ($image->is_published)
<span clas="pull-left"><span class="pull-left fa fa-check"></span> Published</span>
@else
<span clas="pull-left"><span class="pull-left fa fa-times"></span> Published</span>
@endif
</div>
<div class="col-lg-6 col-md-12 col-sm-12">
<div class="col-6">
<div class="btn-toolbar float-right">
<a class="btn btn-sm btn-secondary img-alter-btn mr-2" href="{!! route(cms()->route('images.edit'), [$image->id]) !!}"><i class="fa fa-edit"></i></a>
<form method="post" action="{!! cms()->url('images/'.$image->id) !!}">
Expand Down
2 changes: 1 addition & 1 deletion src/Views/modules/pages/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<div class="col-md-6">
@if ($page->hero_image)
<img class="img-thumbnail img-fluid" src="{{ $page->hero_image_url }}" alt="">
<div class="btn-toolbar mt-2" role="toolbar">
<div class="btn-toolbar mt-2 mb-4" role="toolbar">
<a href="{{ cms()->url('hero-images/delete/page/'.$page->id) }}" class="btn btn-outline-danger">
<span class="fa fa-fw fa-trash"></span> Delete Image
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/Views/modules/promotions/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@include('cms::modules.promotions.breadcrumbs', ['location' => ['edit']])
</div>
<div class="col-md-6">
<div class="btn-toolbar float-right mt-2">
<div class="btn-toolbar float-right mt-2 mb-4">
@if (! cms()->isDefaultLanguage() && $promotion->translationData(request('lang')))
<a class="btn btn-warning ml-1" href="{!! Cms::rollbackUrl($promotion->translation(request('lang'))) !!}">Rollback</a>
@elseif (is_null(request('lang')))
Expand Down
2 changes: 1 addition & 1 deletion src/Views/modules/widgets/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@include('cms::modules.widgets.breadcrumbs', ['location' => ['edit']])
</div>
<div class="col-md-6">
<div class="btn-toolbar float-right mt-2">
<div class="btn-toolbar float-right mt-2 mb-4">
@if (! cms()->isDefaultLanguage() && $widget->translationData(request('lang')))
<a class="btn btn-warning ml-1" href="{!! Cms::rollbackUrl($widget->translation(request('lang'))) !!}">Rollback</a>
@elseif (is_null(request('lang')))
Expand Down

0 comments on commit 4522d38

Please sign in to comment.