Skip to content

Commit f8a45e1

Browse files
Merge pull request #1103 from MarcelRobitaille/1100-fix-sort-buttons-clipped
Fix keyword ordering buttons clipped by top bar
2 parents cb42740 + bd7f506 commit f8a45e1

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
### Fixed
88
- Prevent slow loading of recipes due to iteration over all files
99
[#1072](https://github.com./nextcloud/cookbook/pull/1072) @christianlupus
10+
- Fix keyword ordering buttons being clipped by top bar
11+
[#1103](https://github.com./nextcloud/cookbook/pull/1103) @MarcelRobitaille
1012

1113
### Maintenance
1214
- Add composer.json to version control to have unique installed dependency versions

src/components/RecipeListKeywordCloud.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@
3939
/>
4040
</transition-group>
4141
</div>
42-
<div class="settings-buttons">
42+
<div v-if="uniqKeywords.length > 0" class="settings-buttons">
4343
<button
44-
class="ordering-button"
44+
class="settings-button ordering-button"
4545
:title="orderButtonTitle"
4646
@click="toggleOrderCriterium"
4747
>
4848
{{ orderButtonText }}
4949
</button>
5050
<button
51+
class="settings-button"
5152
:class="toggleSizeIcon"
5253
:title="t('cookbook', 'Toggle keyword area size')"
5354
@click="toggleCloudSize"
@@ -222,6 +223,7 @@ export default {
222223
<style lang="scss" scoped>
223224
.kw-container {
224225
position: relative;
226+
display: flex;
225227
}
226228
227229
.kw {
@@ -249,11 +251,11 @@ export default {
249251
}
250252
251253
.settings-buttons {
252-
position: absolute;
253-
right: 10px;
254-
bottom: -8px;
254+
display: flex;
255+
align-items: flex-start;
256+
padding: 0.5rem;
255257
256-
button {
258+
.settings-button {
257259
min-height: 8px;
258260
font-size: 8px;
259261
vertical-align: bottom;

0 commit comments

Comments
 (0)