Skip to content

Commit

Permalink
Merge branch '4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gengar-i committed Nov 30, 2022
2 parents 7f5f0d9 + e12546d commit 8e9c0be
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 19 deletions.
20 changes: 20 additions & 0 deletions src/bundle/Resources/public/img/ibexa-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/bundle/Resources/public/img/icons/caret-double-back.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/bundle/Resources/public/img/icons/caret-double-next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
justify-content: center;
align-items: center;
}
.ibexa-icon {
margin-right: 0;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
align-items: center;
padding: calculateRem(5px);
margin-bottom: calculateRem(8px);
border-top: calculateRem(1px) solid $ibexa-color-light;
border: calculateRem(1px) solid $ibexa-color-light;
border-radius: $ibexa-border-radius;
box-shadow: calculateRem(4px) calculateRem(2px) calculateRem(17px) 0 rgba($ibexa-color-black, 0.05);

Expand Down Expand Up @@ -38,6 +38,7 @@
&__actions-wrapper {
display: flex;
justify-content: flex-end;
align-items: center;
}

&__remove-button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
background-color: $ibexa-color-white;
position: fixed;
top: calculateRem(95px);
right: 0;
right: calculateRem(16px);
min-height: calculateRem(60px);
min-width: calculateRem(390px);
border: calculateRem(1px) solid $ibexa-color-light;
Expand All @@ -16,24 +16,20 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: calculateRem(12px) calculateRem(12px) calculateRem(12px) calculateRem(32px);
padding: calculateRem(7px) calculateRem(12px) calculateRem(7px) calculateRem(22px);
}

&__selection-counter {
color: $ibexa-color-dark;
font-size: calculateRem(22px);
font-weight: 600;
padding-right: calculateRem(16px);
}

&__toggle-button {
.ibexa-icon:first-child {
margin-right: calculateRem(-6px);
}
}

&--expanded {
bottom: calculateRem(100px);
min-width: calculateRem(491px);
overflow: hidden;

.c-selected-locations {
&__items-wrapper {
Expand All @@ -47,6 +43,7 @@
overflow: auto;
padding: 0 calculateRem(38px) calculateRem(16px) calculateRem(22px);
border-top: calculateRem(1px) solid $ibexa-color-light;
height: calc(100% - calculateRem(70px));
}

&__actions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,16 @@
<target state="new">Collapse sidebar</target>
<note>key: selected_locations.collapse.sidebar</note>
</trans-unit>
<trans-unit id="d4462bb9386e96a0984586618fbfbcd0852fd4ea" resname="selected_locations.deselect_all">
<source>Deselect all</source>
<target state="new">Deselect all</target>
<note>key: selected_locations.deselect_all</note>
</trans-unit>
<trans-unit id="19700661da70137e52d0009660c9a87f5bcb99bd" resname="selected_locations.expand.sidebar">
<source>Expand sidebar</source>
<target state="new">Expand sidebar</target>
<note>key: selected_locations.expand.sidebar</note>
</trans-unit>
<trans-unit id="01e881354bb5e776ed6f3fd36360f8f3c06a5fd7" resname="selected_locations.remove_all">
<source>Remove all</source>
<target state="new">Remove all</target>
<note>key: selected_locations.remove_all</note>
</trans-unit>
<trans-unit id="fe05e738022445778cb775ca099ba54291ae88e9" resname="selected_locations.selected_items">
<source>%count% selected item(s)</source>
<target state="new">%count% selected item(s)</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SelectedLocationsItem = ({ location, permissions }) => {
return (
<div className="c-selected-locations-item" ref={refSelectedLocationsItem}>
<div className="c-selected-locations-item__image-wrapper">
<Thumbnail thumbnailData={thumbnailData} />
<Thumbnail thumbnailData={thumbnailData} iconExtraClasses="ibexa-icon--small" />
</div>
<div className="c-selected-locations-item__info">
<span className="c-selected-locations-item__info-name">{location.ContentInfo.Content.TranslatedName}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const SelectedLocations = () => {
return <div className="c-selected-locations__selection-counter">{selectedLabel}</div>;
};
const renderToggleButton = () => {
const iconName = isExpanded ? 'caret-next' : 'caret-back';
const iconName = isExpanded ? 'caret-double-next' : 'caret-double-back';

return (
<button
Expand All @@ -54,18 +54,21 @@ const SelectedLocations = () => {
data-tooltip-container-selector=".c-udw-tab"
>
<Icon name={iconName} extraClasses="ibexa-icon--small" />
<Icon name={iconName} extraClasses="ibexa-icon--small" />
</button>
);
};
const renderActionButtons = () => {
const removeAllLabel = Translator.trans(/*@Desc("Remove all")*/ 'selected_locations.remove_all', {}, 'universal_discovery_widget');
const removeAllLabel = Translator.trans(
/*@Desc("Deselect all")*/ 'selected_locations.deselect_all',
{},
'universal_discovery_widget',
);

return (
<div className="c-selected-locations__actions">
<button
type="button"
className="c-selected-locations__clear-selection-button btn ibexa-btn ibexa-btn--secondary"
className="c-selected-locations__clear-selection-button btn ibexa-btn ibexa-btn--small ibexa-btn--secondary"
onClick={clearSelection}
>
{removeAllLabel}
Expand Down

0 comments on commit 8e9c0be

Please sign in to comment.