Skip to content

Commit

Permalink
Merge pull request #77 from geo-milev/fix-eventview-image-title
Browse files Browse the repository at this point in the history
Fix EventView image titles
  • Loading branch information
NikolaGanchev authored Jun 26, 2023
2 parents 80c4bbd + 5578200 commit 127bb0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 10 additions & 3 deletions src/lib/EventView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
</script>

<div class="container">
<div class="image-container">
<img src="{env.PUBLIC_SERVER_URL + event.image.url}" alt="{event.image.alt}" loading="lazy"/>
<div class="image-title-container">
<div class="image-container">
<img src="{env.PUBLIC_SERVER_URL + event.image.url}" alt="{event.image.alt}" loading="lazy"/>
</div>
<p>{event.image.alt}</p>
</div>
<div class="text">
Expand All @@ -28,7 +30,12 @@
.image-container {
display: flex;
justify-content: center;
margin-right: 3rem;
height: 100%;
}
.image-title-container {
display: flex;
margin-right: 3rem;
flex-direction: column;
}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/organisation/budget/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@
<label for="year">Бюджет</label>
{#if yearlyBudgets && quarterlyBudgets}
<select name="classNumber" id="classNumber" bind:value={selectedBudgetId} on:change={changeSelectedBudget}>
{#if yearlyBudgets}
{#if yearlyBudgets.length > 0}
<optgroup label="Годишни">
{#each yearlyBudgets as budget}
<option value="{budget.budget.id}">Годишен: {budget.budget.name}</option>
{/each}
</optgroup>
{/if}
{#if quarterlyBudgets}
{#if quarterlyBudgets.length > 0}
<optgroup label="Тримесечни">
{#each quarterlyBudgets as budget}
<option value="{budget.budget.id}">Тримесечен: {budget.budget.name}</option>
Expand Down

0 comments on commit 127bb0f

Please sign in to comment.