Skip to content

Commit

Permalink
Decrease history button size in small windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MWedl committed Sep 21, 2023
1 parent 0f5dec9 commit 2d62f96
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Template/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

<s-btn v-if="history" @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>

<template #context-menu v-if="$slots['toolbar-context-menu']">
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/projects/_projectId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template #default>
<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
<btn-readonly :value="project.readonly" :set-readonly="setReadonly" />
<s-btn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
:disabled="readonly"
/>

<div class="assignee-container ml-1 mr-1">
<div class="assignee-container ml-1 mr-1 d-none d-lg-block">
<user-selection
v-model="note.assignee"
:selectable-users="project.members"
Expand All @@ -48,15 +48,15 @@
v-if="currentUrl"
:to="currentUrl" nuxt exact
color="secondary"
class="ml-1 mr-1"
class="ml-1 mr-1 d-none d-lg-inline-flex"
>
<v-icon left>mdi-undo</v-icon>
Back to current version
</s-btn>

<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
</template>
</edit-toolbar>
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/projects/_projectId/notes/_noteId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
:disabled="readonly"
/>

<div class="assignee-container ml-1 mr-1">
<div class="assignee-container ml-1 mr-1 d-none d-lg-block">
<user-selection
v-model="note.assignee"
:selectable-users="project.members"
Expand All @@ -48,7 +48,7 @@

<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="finding && project && projectType" :key="project?.id + finding?.id">
<edit-toolbar v-bind="toolbarAttrs" v-on="toolbarEvents">
<status-selection v-model="finding.status" :disabled="readonly" />
<div class="assignee-container ml-1 mr-1">
<div class="assignee-container ml-1 mr-1 d-none d-lg-block">
<user-selection
v-model="finding.assignee"
:selectable-users="project.members"
Expand All @@ -16,15 +16,15 @@
<s-btn
v-if="currentUrl"
:to="currentUrl" nuxt exact
color="secondary" class="ml-1 mr-1"
color="secondary" class="ml-1 mr-1 d-none d-lg-inline-flex"
>
<v-icon left>mdi-undo</v-icon>
Back to current version
</s-btn>

<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
</edit-toolbar>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</s-tooltip>

<status-selection v-model="finding.status" :disabled="readonly" />
<div class="assignee-container ml-1 mr-1">
<div class="assignee-container ml-1 mr-1 d-none d-lg-block">
<user-selection
v-model="finding.assignee"
:selectable-users="project.members"
Expand All @@ -33,7 +33,7 @@

<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
</edit-toolbar>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="section && project && projectType" :key="project.id + section.id">
<edit-toolbar v-bind="toolbarAttrs" v-on="toolbarEvents" :can-auto-save="true">
<status-selection v-model="section.status" :disabled="readonly" />
<div class="assignee-container ml-1 mr-1">
<div class="assignee-container ml-1 mr-1 d-none d-lg-block">
<user-selection
v-model="section.assignee"
:selectable-users="project.members"
Expand All @@ -16,15 +16,15 @@
<s-btn
v-if="currentUrl"
:to="currentUrl" nuxt exact
color="secondary" class="ml-1 mr-1"
color="secondary" class="ml-1 mr-1 d-none d-lg-inline-flex"
>
<v-icon left>mdi-undo</v-icon>
Back to current version
</s-btn>

<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
</edit-toolbar>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="section && project && projectType" :key="project.id + section.id">
<edit-toolbar v-bind="toolbarAttrs" v-on="toolbarEvents" :can-auto-save="true">
<status-selection v-model="section.status" :disabled="readonly" />
<div class="assignee-container ml-1 mr-1">
<div class="assignee-container ml-1 mr-1 d-none d-lg-block">
<user-selection
v-model="section.assignee"
:selectable-users="project.members"
Expand All @@ -15,7 +15,7 @@

<s-btn @click="historyVisible = !historyVisible" color="secondary">
<v-icon left>mdi-history</v-icon>
Version History
<span class="d-none d-lg-inline">Version History</span>
</s-btn>
</edit-toolbar>

Expand Down

0 comments on commit 2d62f96

Please sign in to comment.