Skip to content

Commit e116c94

Browse files
committed
style: CSS for nav buttons
1 parent 4ed2c92 commit e116c94

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

assets/components/modai/css/mgr.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@
1212
.modai-generate:hover {
1313
transform: rotate(20deg);
1414
}
15+
16+
.modai-history_prev, .modai-history_next {
17+
all: unset;
18+
display: inline-block;
19+
cursor: pointer;
20+
}

assets/components/modai/js/mgr/autosummary.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ Ext.onReady(function() {
9999

100100
const createHistoryNav = (field, fieldName) => {
101101
const prevButton = document.createElement('button');
102+
prevButton.type = 'button';
103+
prevButton.title = 'Prev';
104+
prevButton.className = 'modai-history_prev';
102105
prevButton.disable = () => {
103106
prevButton.disabled = true;
104107
}
@@ -111,6 +114,9 @@ Ext.onReady(function() {
111114
});
112115

113116
const nextButton = document.createElement('button');
117+
nextButton.type = 'button';
118+
nextButton.title = 'Next';
119+
nextButton.className = 'modai-history_next';
114120
nextButton.disable = () => {
115121
nextButton.disabled = true;
116122
}

0 commit comments

Comments
 (0)