Skip to content

Commit

Permalink
Merge pull request #1208 from danesjenovdan/dev
Browse files Browse the repository at this point in the history
Pulling refs/heads/dev into lendava
  • Loading branch information
LepkoQQ authored Jul 29, 2024
2 parents 00efd67 + 131e1c7 commit 07b2d3c
Show file tree
Hide file tree
Showing 18 changed files with 1,038 additions and 967 deletions.
2 changes: 1 addition & 1 deletion parlacards/build/card-entry-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/>
<link
rel="stylesheet"
href="{assetsUrl}/scss/style.css"
href="{assetsUrl}/scss/style.css?v=3"
/>
<link
rel="shortcut icon"
Expand Down
2 changes: 1 addition & 1 deletion parlacards/build/card-template-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/>
<link
rel="stylesheet"
href="<!--parlassets-url-->/scss/style.css"
href="<!--parlassets-url-->/scss/style.css?v=3"
/>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion parlacards/build/card-template-embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="<!--parlassets-url-->/scss/style.css" />
<link rel="stylesheet" href="<!--parlassets-url-->/scss/style.css?v=3" />
<link
rel="shortcut icon"
type="image/x-icon"
Expand Down
2 changes: 1 addition & 1 deletion parlacards/build/card-template-share.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/>
<link
rel="stylesheet"
href="<!--parlassets-url-->/scss/style.css"
href="<!--parlassets-url-->/scss/style.css?v=3"
/>
<link
rel="shortcut icon"
Expand Down
77 changes: 59 additions & 18 deletions parlacards/cards/_components/SearchDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>
<template v-for="(item, index) in filteredItems" :key="`${item.id}`">
<li v-if="item.groupLabel" class="search-dropdown-group-label">
{{ item.groupLabel }}
<span>{{ item.groupLabel }}</span>
</li>
<li
:class="generateItemClass(item, index)"
Expand All @@ -67,8 +67,10 @@
v-else-if="item.colorClass"
:class="['color', item.colorClass]"
/>
<!-- eslint-disable-next-line vue/no-v-html -->
<span v-html="item.highlightLabel" />
<span class="label-text">
<!-- eslint-disable-next-line vue/no-v-html -->
<span class="clamp-lines" v-html="item.highlightLabel"></span>
</span>
</div>
<div v-if="item.count">{{ item.count }}</div>
</li>
Expand Down Expand Up @@ -421,38 +423,77 @@ export default {
li {
margin-right: 0;
min-height: 24px;
height: auto;
padding: 0 5px;
&.large {
height: 46px;
line-height: 46px;
padding: 0 5px;
.search-dropdown-label {
display: flex;
align-items: center;
.image,
.color {
flex-shrink: 0;
}
&::after {
content: none;
.label-text {
margin-top: 1px;
line-height: 1.2;
padding-block: 6px;
margin-inline: 10px 5px;
.clamp-lines {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
}
&.large {
min-height: 46px;
height: auto;
padding: 0 5px;
.image {
width: 36px;
height: 36px;
border-radius: 50%;
height: 37px;
margin-right: 3px;
width: 37px;
margin-right: 5px;
object-fit: cover;
}
.color {
display: inline-block;
border-radius: 50%;
height: 16px;
margin: 0 13px -3px 11px;
width: 16px;
height: 16px;
border-radius: 50%;
margin-inline: 10px 15px;
}
.label-text {
padding-block: 11px;
margin-inline: 0;
}
}
&.search-dropdown-group-label {
@include gradient('horizontal');
// background: linear-gradient(to left, $first, $third);
color: $white;
&::after {
content: none;
min-height: 24px;
height: auto;
line-height: 1.2;
padding-inline: 10px;
padding-block: 4px;
span {
margin-top: 1px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions parlacards/cards/_i18n/en/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ full-speech: Whole speech
session-processing: Session is being processed.
organization: Organisation
start: Beginning
date: Date
start-date: Start date
end-date: End date
legislation: Legislation
laws: Laws
acts: Acts
Expand Down
3 changes: 3 additions & 0 deletions parlacards/cards/_i18n/hr/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ full-speech: Cijeli govor
session-processing: Sjednica je u tijeku.
organization: Tijelo
start: Početak
date: Datum
start-date: Datum početka
end-date: Datum završetka
legislation: Zakonodavstvo
laws: Zakoni
acts: Akti
Expand Down
Loading

0 comments on commit 07b2d3c

Please sign in to comment.