Skip to content

Commit

Permalink
add styling
Browse files Browse the repository at this point in the history
  • Loading branch information
dt2patel committed Jan 22, 2025
1 parent 3e20545 commit a7f0bb4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/JobConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<!-- Import logs -->
<section v-if="historyJobConfig && currentJob.runtimeData?.configId && getDataManagerLogs?.length">
<ion-item lines="none">
<h1>{{ translate('Import logs') }}</h1>
<h3>{{ translate('Import logs') }}</h3>
<ion-button slot="end" fill="clear" @click="openImportLogsDetails()">{{ translate('View details') }}</ion-button>
</ion-item>
<ion-progress-bar :value="(getProcessedFileCount() - getErrorFileCount()) / getDataManagerLogs.length"></ion-progress-bar>
Expand Down
30 changes: 25 additions & 5 deletions src/views/Pipeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</ion-item>
</div>
<main v-else>
<section v-if="segmentSelected === 'pending'">
<section id="pending" v-if="segmentSelected === 'pending'">
<!-- Empty state -->
<div v-if="pendingJobs?.length === 0">
<p class="ion-text-center">{{ translate("There are no jobs pending right now")}}</p>
Expand Down Expand Up @@ -113,7 +113,7 @@
</div>
</section>

<section v-if="segmentSelected === 'running'">
<section id="running" v-if="segmentSelected === 'running'">
<!-- Empty state -->
<div v-if="runningJobs?.length === 0">
<p class="ion-text-center">{{ translate("There are no jobs running right now")}}</p>
Expand Down Expand Up @@ -179,7 +179,7 @@
</div>
</section>

<section v-if="segmentSelected === 'history'">
<section id="history" v-if="segmentSelected === 'history'">
<!-- Empty state -->
<div v-if="jobHistory?.length === 0">
<p class="ion-text-center">{{ translate("No jobs have run yet")}}</p>
Expand Down Expand Up @@ -256,11 +256,11 @@

<ion-refresher slot="fixed" @ionRefresh="refreshJobs($event)">
<ion-refresher-content pullingIcon="crescent" refreshingSpinner="crescent" />
</ion-refresher>
</ion-refresher>
<ion-infinite-scroll @ionInfinite="loadMoreJobHistory($event)" threshold="100px" v-show="isHistoryJobsScrollable" ref="infiniteScrollRef">
<ion-infinite-scroll-content loading-spinner="crescent" :loading-text="translate('Loading')"/>
</ion-infinite-scroll>
</div>
</div>
</section>

<aside class="desktop-only" v-if="isDesktop" v-show="(segmentSelected === 'pending' || segmentSelected === 'history') && currentJob && Object.keys(currentJob).length">
Expand Down Expand Up @@ -821,5 +821,25 @@ ion-chip {
ion-toolbar > div > ion-chip:first-child {
margin-left: var(--spacer-3xl);
}
/* overriding global main element CSS */
main {
margin-block-start: none;
/* limit height to visibile canvas */
height: 100%;
overflow-y: hidden;
}
/* allow both columns to scroll independently */
section, aside {
height: 100%;
overflow: scroll;
padding-block-start: var(--spacer-base);
}
aside {
padding-block-end: var(--spacer-base);
}
}
</style>

0 comments on commit a7f0bb4

Please sign in to comment.