Skip to content

Commit

Permalink
Merge pull request #484 from art-institute-of-chicago/feature/sidebar…
Browse files Browse the repository at this point in the history
…-title

Display and style title card in publications sidebar [PUB-218]
  • Loading branch information
nikhiltri committed Aug 21, 2024
2 parents 9704fd8 + b627140 commit 31ed970
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/Models/DigitalPublication.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class DigitalPublication extends AbstractModel
'cite_as',
'header_title_display',
'header_subtitle_display',
'sidebar_title_display',
'bgcolor',
'toggle_autorelated',
];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
Schema::table('digital_publications', function (Blueprint $table) {
$table->dropColumn('sidebar_title_display');
});
}

public function down(): void
{
Schema::table('digital_publications', function (Blueprint $table) {
$table->text('sidebar_title_display')->nullable();
});
}
};
7 changes: 7 additions & 0 deletions frontend/scss/organisms/_o-article__primary-actions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
margin-bottom: 40px;
white-space: nowrap;

@include breakpoint('large+') {
.p-digitalpublications-show &,
.p-digitalpublications-showlisting & {
display: none !important;
}
}

@include font-styles-untuck(generate-font-obj(
(
font-family: $serif-font,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div class="m-article-actions--publication__logo">
<a href="{!! $digitalPublication->present()->getCanonicalUrl() !!}">
{!! $digitalPublication->sidebar_title_display !!}
{!! $digitalPublication->header_title_display !!}
</a>
</div>

Expand Down

0 comments on commit 31ed970

Please sign in to comment.