Skip to content

Commit

Permalink
Merge pull request #5990 from nextcloud/fix/clickable-size
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Jul 4, 2024
2 parents 835a8b5 + d21108c commit 7c3e16a
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ export default {
top: 0;
opacity: 0;
visibility: hidden;
height: 44px; // important for mobile so that the buttons are always inside the container
height: var(--default-clickable-area); // important for mobile so that the buttons are always inside the container
padding-top:3px;
padding-bottom: 3px;
}
Expand Down
14 changes: 7 additions & 7 deletions src/components/Editor/SessionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<AvatarWrapper v-for="session in sessionsVisible"
:key="session.id"
:session="session"
:size="40" />
:size="30" />
</button>
</div>
</template>
Expand Down Expand Up @@ -130,7 +130,7 @@ export default {
<style scoped lang="scss">
.session-list {
height: 44px;
height: var(--default-clickable-area);
}
.avatar-list {
border: none;
Expand All @@ -142,18 +142,18 @@ export default {
flex-direction: row-reverse;
.avatar-wrapper {
margin: 0 -18px 0 0;
margin: 0 -12px 0 0;
z-index: 1;
border-radius: 50%;
overflow: hidden;
box-sizing: content-box !important;
height: 36px;
width: 36px;
height: calc(var(--default-clickable-area) - 4px);
width: calc(var(--default-clickable-area) - 4px);
}
.icon-more, .icon-group, .icon-settings-dark {
width: 44px;
height: 44px;
width: var(--default-clickable-area);
height: var(--default-clickable-area);
margin: 0 3px 0 0;
&:hover {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ export default {
display: inline-flex;
justify-content: center;
padding: 0;
height: 44px;
width: 44px;
height: var(--default-clickable-area);
width: var(--default-clickable-area);
&:hover {
background-color: var(--color-background-hover);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Menu/ActionEntry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

button.entry-action__button {
height: 44px;
height: var(--default-clickable-area);
margin: 0;
border: 0;
// opacity: 0.5;
Expand All @@ -32,7 +32,7 @@
}

&:not(li.entry-action-item button) {
width: 44px;
width: var(--default-clickable-area);
}

&:hover,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export default {
z-index: 10021; // above modal-header so menubar is always on top
background-color: var(--color-main-background-translucent);
backdrop-filter: var(--background-blur);
max-height: 44px; // important for mobile so that the buttons are always inside the container
max-height: var(--default-clickable-area); // important for mobile so that the buttons are always inside the container
padding-top:3px;
padding-bottom: 3px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Suggestion/SuggestionListWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default {
font-weight: bold;
color: var(--color-primary-element);
font-size: var(--default-font-size);
line-height: 44px;
line-height: var(--default-clickable-area);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand Down
4 changes: 2 additions & 2 deletions src/css/prosemirror.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ div.ProseMirror {
outline: none;

:target {
// Menubar height: 44px + 3px bottom + 3px top padding
scroll-margin-top: 50px;
// Menubar height: 34 + 3px bottom + 3px top padding
scroll-margin-top: 40px;
}

&[contenteditable=true],
Expand Down
4 changes: 2 additions & 2 deletions src/nodes/ImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ export default {
padding: 8px;
img {
width: 44px;
height: 44px;
width: var(--default-clickable-area);
height: var(--default-clickable-area);
}
.metadata {
Expand Down
1 change: 1 addition & 0 deletions src/nodes/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default Node.create({
/**
* Insert a preview for given link.
*
* @param link
*/
insertPreview: (link) => ({ state, chain }) => {
return chain()
Expand Down
4 changes: 2 additions & 2 deletions src/views/DirectEditing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export default {
}
button {
width: 44px;
height: 44px;
width: var(--default-clickable-area);
height: var(--default-clickable-area);
margin: 0;
background-size: 16px;
border: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default {
}
.rich-workspace--preview {
margin-top: 44px;
margin-top: var(--default-clickable-area);
&:deep(div[contenteditable='false']) {
margin: 0;
Expand Down

0 comments on commit 7c3e16a

Please sign in to comment.